Legal education is required. Lawyers compete with each other for the judge spot by studying and scoring as high as possible on the test. It's the dream job of the legal profession.
To add a bit, the test is so tough that lawyers don't really compete against each other. From all the lawyers in the country wanting to have that position (that is the dream job), not enough of them get the minimum score to fill all positions.
This is also true in many, many countries to some degree or another. The US has no legal education requirements for elected judges and even many appointed ones. Many European countries allow lay people to act as magistrates or judges in low courts and working alongside legally educated judges in higher courts.
Hell, the whole concept of a jury trial is that the most critical function of a court is reserved for people with no legal education.
Running the court system?