It's not done by the state in the west but the state conveniently lets private companies set it up and then directs those companies in various ways as to what policies to adopt.

The US constitution not extending government limitations to society-scale corporations is a very convenient loop hole. Similar situations exist in other liberal-on-the-book countries.