https://truthout.org/articles/psychiatric-incarceration-isnt-treatment-its-violence-survivors-say/ A cage described as "treatment" is still a cage.
If the problem is a lack of housing, and community programs, then surely that is a better (and more humane) avenue?