Let me just quality a bit further: homelessness is a failure of the neoliberal ideology (land free markets/privatization never worked, from the enclosures [1] to modern times, see Georgism for a solution [2]) and further a failure of the metaphysics of meritocracy based in desert-people's belief "by the sweat of your brow you will eat your food until you return to the ground", which simply isn't the case today, and it certainly won't be the case in a few decades when all the jobs will be gone forever, hopefully.
[1] https://en.wikipedia.org/wiki/Enclosure
[2] https://en.wikipedia.org/wiki/Georgism