In no small part because psychiatric hospitals were wildly, wildly abused. Basically you could lock people up indefinitely with no conviction of anything because someone said they’re a danger to themselves/society/whatever. Basically used like an on-shore Guantanamo.