Although less explicitly, collective punishment is used in the office as well. For instance by letting an entire team work overtime if one of the team members screwed up his work and made the team miss a deadline.
But the fact that collective punishment is used in some places doesn't automatically make it right, IMO.