I think this is one of the drawbacks to having some judicial positions chosen by popular election. It places an incentive for an aspiring prosecutor or elected judge to use the media to promote their image as "law and order" to potential voters, which corrupts the purpose of the judicial system.
I think any time judges and courts get away from their basic purpose of administering justice or interpreting the law, it weakens their contribution to the democracy and to justice as a whole. A justice system works best when it is allowed to be impartial and is insulated from popular opinion, so that the law can be applied whether or not t is popular or not. Bringing the media into the picture just undermines that fundamental purpose, in my opinion.