I think the point is not to not be good in public, but not to be good in public to get social credit (and presumably, not do good in private where it can't help you). The problem is that if the sin is corporate, it can't be attacked individually, and so has to be done publicly.
H