Giving the people what a majority of those people want is a very dangerous thing to do. Part of the theory being having constitutions is to limit the tyranny of the majority, though it is plain to see that in Joe Arpaio's case the limitations are not sufficient. What 51% of voters in Maricopa County apparently want is unacceptable.
[insert Churchill quote here]
They do run in partisan elections, but they are limited with regard to claims they can make about opponents, and a non-partisan commission evaluates the overall qualifications of each judge.
Are there issues with politicalization? Absolutely. But don't make the assumption that election == politics, and appointment != politics. An elected judge at least nominally is accountable to the people. The examples where this system doesn't work well is usually when machine politics corrupt the process of electing judges. If the judge was appointed, chances are they would be accountable to nobody at all.