It's eviction court, not civil court. They are two completely different systems. The judge doesn't always have to follow the law exact believe it or not. Most of the time a judge in eviciton court, at least here in Arizona, is "Justice of the Peace" not "Judge". I know because I was just in a legal battle with my ex landlord for 7 months. I kept bringing proof that he was illegally renting and he had no right to any rent. The judge overlooked it and decided it was dismissed because he owed me for a semi damaged couch...NOT because it was illegal.
But...the OP isn't in Arizona. SO what does any of this have to do with the price of tea in China?