You’d need some serious regulation and enforcement. Company towns have historically been, uh… not great.
For example, imagine Disney rents apartments cheap to their employees but still underpays them. Now they’re stuck working for Disney because they can’t afford the rent offsite and can’t save enough to quit.