I would not say all are bad with emphasis on all.
Yes, as someone has mentioned, it depends on the funding.
I will never forget exploring a big state (general) hospital once (a relative was being admitted for an operation) and walking through the lowest level, a dark and long hallway with hallways extending from that hallway. I kept walking despite being creeped out, and saw a sign of a ward (ABC... some letter of the alphabet) and asked a passerby what that ward is. To my horror, she told me that that is the psychiatry department.
I did not quite understand why the patients were tucked away so deeply in the hospital until I asked my doctor and she explained that the psychiatric ward had to be kept on the lowest level of the hospital (for obvious reasons). I was still terrified of the ward though, but there are thankfully nicer hospitals with better funding and that focus on mental health.