One example doesn't make a case. I'd argue that the system of electing sheriffs has overall worked tremendously well in the US. The alternative is appointment by insiders or a board, both of which are easily susceptible to corruption, and that can make it difficult to impossible to correct said corruption when it happens.