In some jurisdictions, judges aren't elected in the usual sense, but have retention elections, so there is an alternative (don't retain the judge), but not an opponent.
Of course, that also means that the judge gets replaced by an appointee, so its a "Devil you know or...??" kind of choice.
Shit, or not even have a second option. Many (half? more?) run unopposed