We fucked up when in North America we promoted "deinstitutionalization" aka shutting down psychiatric hospitals and letting all these patients out into society to fend for themselves.
Okay, yeah, a lot of the hospitals were bad and were doing horrific psychiatric practices. But we (mostly lol SSRIs are still evil etc) stopped most of that. It's not like we do lobotomies and insulin shock therapy anymore. Nonetheless we could have kept them open and simply put more money into the evolution of health care...
But no, we shut down basically every health care facility dedicated to treating people with severe or non-severe psychiatric issues and let them loose into society. Ever wonder why some depressed kid shoots up a high school every other week? This is why. Ever wonder why there is a guy at your local bus stop that flings shit at cars and tells you about the Devil? This is why. Ever wonder why a guy like Terry Davis could program a whole ass operating system on his own? But then kill himself because he was not being treated for paranoid schizophrenia? This is why.
We need to invest in health care for citizens again, so that they can become mostly healthy members of society. If you are worried about whether or not they'll contribute things, yeah, you can hire a schizophrenic to make Subway sandwiches for your fat ass just fine. They're no worse than the fentanyl addict currently doing it. Mental illness is a real thing and should be treated in order to care for those in your community and to make that community better. You don't achieve that by basically treating them as untouchables (this is a Hindu reference, look it up, faggot).
Tl;dr take psychiatric care seriously. Invest money into helping people. Invest money into education. You will see that although it costs you, it benefits you even more...because the less fucked up people you have sleeping in tents on the street, the better it is for them and you.
https://en.wikipedia.org/wiki/Deinstitutionalisation