But we CANNOT mete out justice according to public opinion. This would be mob-rule.
We therefore need these laws to ensure that justice is not served according to public opinion.
This is especially so in the age of social media, where self-appointed vigilantes think they are policemen, prosecutors, judges and executioners. They now have to think twice before meting out mob-justice, whilst a case is ongoing.
In my opinion, the codification of contempt of court laws into statute cannot come any sooner.