For decades, every state operated its own facilities for mental health. Then, in 1962, JFK (the first one) decided to open the arms of the federal government and take over this duty.
It never happened.
Now they just throw them in with the regular prison population and hope for the best.