You need irrefutable evidence to prove they committed a crime. The problem is that the legal system grants them too much leeway and "right of interpretation", so most charges don't stick. Even when something does, they are usually allowed to resign or retire quietly. The excuse is always the same: "to avoid damaging public trust in the justice system".
While there are honorable people in the system, there are also assholes who will ruin your entire day—making you wait hours just because they’re having coffee. There are so many minor infractions happening in a courthouse that would get anyone else fired, yet nothing ever happens to a judge.