Many schools do things like that and use those methods... to teach the kids how to be a "team."
Or to prevent kids from acting up, because then they affect the other kids.
Now, per lunch and misbehavior and missing recess if a kid(s) act up on a table, yes, my kids' school does that too.
There are RULES. And CONSEQUENCES.
Kids need to learn that.
Now, what SOME Teachers do is: for their class, they have a list of their students on a clip board. This clip board, goes to the Cafeteria, which a responsible child, brings with them for their class and lunch tables. IF or when, there is a kid or several kids... causing trouble during lunch, the Adults who supervise the cafeteria, will check off their name. That way, the Teacher KNOWS, specifically which child, or which children, are making the majority of the trouble, for the lunch table, during lunch. THEN the Teacher.... will further reprimand the child. SO that, the rest of the table, is not punished. Because, the good kids who do not make trouble... DO COMPLAIN... to the Teacher and other adults supervising. And they all do know... WHICH kids, are always... causing trouble for the others. Know that.
Some kids, everyday, habitually cause trouble for their class and table.
I know... I see this everyday.
I work at my kids' school. Elementary.
Kids NEED to learn... that THEIR behavior... affects other kids. They do not act in isolation. It affects other kids. And this is not, nice.
When kids act up... know that... they are generally, acting up TO other kids. It is not alone. They are not just irking themselves... it usually always involves... the offending child, bothering other kids or another child.
That is generally the dynamic.
And, even if a behaved child tells the offending child "stop it... I don't like that...." the offending child does not listen... and they continue to bother the other kids.
I know, I see it. Firsthand.
The idea that a whole group gets punished even if one person acts up... it a commonly used method. Per kids, and even with adults.
It is, about teaching GROUP behavior. That a person in a group... AFFECTS others, and to be AWARE of their actions. FOR the well being of the group.