Reminds me the film "One Flew Over the Cuckoo's Nest". Back then, mental hospitals were actually prisons, too.
They still are. Just fewer people in them and different methods of torture now.