Unfortunately many people subscribe to the concept that we’re living in a meritocracy and thus if someone is poor it’s due to their own fault.
At the same time, barring a major felony, and sometimes not even then, nobody is exactly forcing them into a successful engagement with a recovery program either. If someone is unable to make a rational decision on the subject, who's fault is it if they continue to be untreated?
I agree we need more housing. I also think we'll have "homelessness problems" even if we built enough housing to go around. There are a lot of intersecting problems.