I never understand how people make posts from the psych ward

Don't they take away your phone as soon as you get to the hospital? Maybe it's different in places besides the US, but I've never once been allowed to keep my phone past the emergency room, and definitely not in the actual psychiatric unit itself