The US isn't the only country with homeless people. In much of Europe where people actually can literally go and obtain free social housing there are still sizeable homeless populations for exactly the reason OP pointed out, they cannot manage their day-to-day affairs because they are drug addicted or mentally ill.
In Germany we have about 50k people living on the streets. Technically none of those people need to be. They could all get the necessary financial aid.