America is a really good example of why elected judges is a mixed bag - in counties where it happens you’ll occasionally see some righteous dethroning of a corrupt judge… but you’ll also see most elections go unnoticed with judges winning based on party alone and flying under the radar to enrich themselves.
Compare that to the Supreme Court which appoints staffers based mostly on merit (obviously the current panel of justices is fucking disappointing) or political appointment by congress that’s given us Thomas, Kavanaugh, and Cannon.
Election of jurists or internal career paths both have their advantages and disadvantages… political appointments is the only system that’s truly balls.