Did he ever catch you with a rusty knife or other provoking item? That's likely why.
Nope. But head teacher did catch me running towards him and took me to the punishment room while interrupting and exiting me from the cooking minigame.