Many homeless need to be in mental health facilities for life.
There’s a reason homelessness skyrocketed after “One Flew Over the Cuckoo’s Nest” led to most mental hospitals getting closed, on the idea that most of these people could be handled via outpatient care - and ignoring the fact that many had to be supervised or forced to take their meds.
Now we have fewer beds than we did in the 1950s but far more people in general.
Society can’t afford to pay for places for like and have people watch them like hawks.
That is why they used to lobotomize people with certain levels of problems.
Truth is you need to calm them down and if they can’t regularly take medication the right way you get big problems.