Your average voter has absolutely no business deciding the quality of someone's legal education, scholarship, etc. Hell one state I lived in most of the "judges" handling minor offenses like traffic tickets and small claims court had never been to law school, never served in any criminal justice role, they just ran for the seat and got it. It's a joke.
Appointing judges has its own host of problems but at least then you'll get people who are on the surface qualified to read, understand, and interpret the law.