I can think of many reasons why that's just not right. Getting your child to broadcast her wrong doing for all and sundry to taunt and judge her is plain horrible.
However it's not just her people will form a bad opinion about, in fact many might even sympathize with her despite her obvious mistakes and blame her parents instead.
Anyone would feel surely with folks as humiliating as this, any kid is bound to do what their daughter did.
Make no mistake, what the girl did wasn't good by any means, but there are plenty of better ways of disciplining her, rather than causing such scene and garnering unwanted attention like this!