An elected Public Defender isn't valuable background for other elected positions (unlike an elected D.A.), especially in moderate-to-conservative polities, so the kind of people interested in running for election usually don't want the job, and the kind of people who would want the job won't want for election (unless the election is pro forma because it is uncontested.)