This was not a big problem in the 50s, even early 60s; what happened?””’
The ACLU went after Reagan & demanded that mental institutions be closed.
Wyatt v. Stickney, 1972. Look it up. Had nothing at all to do with Reagan. FWIW the court case was ultimately decided correctly, if you care at all about the Constitution.