There is also the possibility that the person in question aggravated the judge by acting in a bonkers way. I have totally seen that - someone not understanding rules and procedures making all the wrong moves and then framing themselves as unfair victim.