one was illegal and intended to intimidate a group of children, and pressure them to get the desired outcome, it was not the intended punishment.
the other would be legal if court ordered and punitive reparation because costs incurred through inappropriate actions have to come from somewhere, and police are supposed to be policing each other, children are not.
sure they are similar in that one persons actions has consequences that affect more than that one person, whom they affect is a matter of responsibility, blame, reparation, and bearing the cost. is it the general public? is it the department? it has to be someone.