Yes, this might sound simplistic but it the answer.
A judge really does have nearly absolute authority within his court (including the ability to sentence anyone in the court to jail time for contempt). If you walk into a court with a claim that's correct by the letter of the law but egregious in some other fashion, the judge can and will say "this is baloney, get the * out" and there will likely be nothing you can do about it.