If you put the puzzle pieces together, it spells s-o-c-i-a-l-i-s-m /s In other developed nations the government subsidizes housing for the disadvantaged- and more often than not this investment will pay back in the future.
1: https://www.reuters.com/article/us-usa-homelessness-housing-...
I think giving people housing is a huge part of getting them off the streets, and I think you underestimate the number of people who are homeless because you're not seeing the countless homeless people who are keeping their lives together in spite of not having a permanent address.
It depends on who you consider disadvantaged. In Berlin, 20-25% (~776k in 2018) qualify for subsidized housing. The state owns about 320k apartments, though they're mixed and provide subsidized and market-rates (mostly to finance the subsidies).