That depends on whether or not anyone cares about the patient.
Many, many psych patients have basically been disowned by their families, they have no friends, and don't have the ability to live on their own in society. Maybe the lawyers would care enough about them, if they could win a suit, but I'd not bet on that.
I'd suspect that a huge number of homeless folks were ones that would have been "lifers" in mental hospitals. The enormous homeless problem in the US is actually relatively new. I remember when it was much, much less of a problem (We have always had them, but nowhere near the scale we have them, now).
We live in a nation, where it is easier for mentally ill people to get weapons, than help[0].
That said, in MD, where I lived for a while, we had The Patuxent Institution[1]. It may still be around. Charming place. It inspired this movie[2].
[0] https://www.npr.org/sections/shots-health-news/2024/08/24/nx...