One way, the company could maybe give some amount of money to help with the moving out cost or maybe allow for the employee to stay for a bit longer while they looking for new place to live.
Still that's a lot of hassle compared to just not having to move, such as from independent housing.
It maybe but independent housing has it downside: commute time and high cost.