You talking about actual judges or JP?
Great question that I see boyoboy has failed to respond to. Judges have legal training and were, in virtually every instance a lawyer, (either defense of crown), before being appointed as a judge. Anyone, can apply to be appointed as a JP, no formal legal training is required.
In the case being discussed, the accused had his trial held before a judge, not a JP. Cases before JP's are low level cases, IE, traffic violations, parking tags, and bylaw offences. Anything criminal in nature is heard by a Judge.