Did you ever have a teacher at school who punished people when they simply walked out of the classroom to go to the bathroom?
I did.
There was one teacher I remember who gave a 30 minutes timeout to a boy in class who one day simply walked out of the room without asking her permission first.