I have never understood why this was the go to punishment for students that didn't want to be at school.
"Don't want to be at school? Well then, fine! You're not allowed at school. Ha, that sure showed that rambunctious rascal!"
"Uhh..." plays Zelda or whatever