He was hired to always make sure that every students in his line of sight follow the school rules. If he spots someone breaking the school rules, he'll always make sure to give them a detention.