Japan has a lot of this, but it's usually a building in the middle of a city so you're not like... completely surrounded. But your neighbors are probably from the same company.
And isn't Japanese corporate culture, for all of its repressive and overworked ways, at least compensating its workers with guaranteed lifetime employment, pensions, etc.? Whereas in the U.S. You may be fired at any time.
Many companies have appartments to rent for their employees, especially bigger companies in things like civil engineering. They'll usually let you rent for a super low rate (like $100/month), and though obviously your salary is given with an understanding you'll stay there.