In the game, this happens even when housing is available and affordable - the bug is that the homeless people are wealthy and there are vacant, affordable houses that they can move into, they just choose to be homeless. There isn’t even a markup from landlords, because an update already deleted them.
In real life, the problem is that we still have landlords. Idk why we don’t just delete them like the game devs did.