How come students getting away with hitting the teacher but if a teacher hits a student they are instantly fired?

How come students getting away with hitting the teacher but if a teacher hits a student they are instantly fired?
Post Opinion