Being a judge practically requires having a law degree as a prerequisite (and also convincing whoever appoints judges to appoint you or convincing people to elect you), being a politician requires actually convincing people to vote for you, also lots of funding for advertising. Much more difficult than being a lawyer.