https://www.lincoln.ne.gov/city/attorn/faqpt2.htm
"
What are Court Costs? The judge will assess court costs against you if you are found guilty of the violation....You also pay court costs if you plead
guilty or pay your fine by
waiver...
What costs do court costs pay for? As the name implies, court costs go to the court system to help pay for the administrative costs such as docket fees,
judges retirement fund, law enforcement improvement fund, legal services, court automation, and miscellaneous fees."
Basically, if an officer gives a ticket (justified or not), and the judge finds the person guilty (justified or not), then the judge's retirement fund gets money. To me that gives a judge a perverse incentive to side with officers to find people guilty. The more the judge sides with officers, the easier it is on the officer, so the more tickets the officer has time to give, so the more cases come to the judge, so the judge gets more money, etc. It is a nasty viscious circle.
If the judge routinely finds people innocent, then the judge's retirement fund doesn't get paid.
Judges should have no financial gain from being with or against the officers.