I don't disagree, but it's hardly the point. It is far, far worse for an employer to do this sort of thing than it was for the employee to have done something inappropriate in front of her boss.
Their is a power imbalance in the employee/employer relationship, and it is almost always skewed to the employer. That's why there are unions, and workplace relations laws.