Punishment is temporary and transitory. Punishment in the classroom arouses resentment and invariably diminishes student motivation to learn what the teacher desires. Punishment, by its very nature, is counterproductive to good teaching because punishment fails to foster responsibility, cooperation, or positive motivation. The use of punishment in the classroom automatically creates an adversarial relationship between the teacher and the student. This adversarial relationship oftentimes results in the student's testing the teacher to see how much the student can get away with.
Some young people test the limits of acceptability.
Sometimes the use of authority is necessary. However, authority can be used without being punitive.