On whose authority were you committed? What facility did you stay at?
Something about this doesn’t seem right.
Tell a psychiatrist something they don't like and they have the authority to "voluntarily" send you--which basically means you have to go and if you say no, they can involuntarily send you--which basically means when you get there, you have the rights of a dog (not that you have any rights if you're voluntary).
I'm assuming that's what happened.