Well, they’re from villages all across China. They need somewhere to live and it might as well not have a commute.
Nearly every large employer in China has employee housing of some sort, including government agencies. Every single manufacturer has dorms.