If a company controls your paycheck, it's hard enough to leave. If they control both your paycheck and your housing, it's much harder to leave. If you want to leave and you put in your two weeks' notice, are they going to respond with notice that you're being evicted? So now you have to handle a job change and a sudden move at the same time?
Sudden? If you live in a company-owned house, would you really expect to stay after quitting?
If you want to leave, you plan your move along with your change of job. If for some particular reason you may think this will be exceedingly problematic, you can move before quitting.
If a company controls your paycheck, it's hard enough to leave. If they control both your paycheck and your housing, it's much harder to leave. If you want to leave and you put in your two weeks' notice, are they going to respond with notice that you're being evicted? So now you have to handle a job change and a sudden move at the same time?