Easy answer - the liberal federal judges turned the mentally ill out of the hospitals that used to keep them.
The liberals did indeed get this trend going, but i don’t see anybody from either side clamoring for money to re-establish decent custodial care for the mentally ill. It’s expensive and in most states probably would involve raising taxes (or cutting something else). In fact, mental health is one of the first things cut when hard times roll around.