Because they want something to bitch at you for, seeing as thats about all they can do is write detentions or referals, or call parents. Basically they do it because they can. It pisses me off to, happens all to often, and for no reason, I was 2 steps from the classroom, and the bell rang, but I still got a detention.