In America in the seventeenth century, rural areas relied heavily upon sheriffs. Those sheriffs were
appointed by the governor of the state
chosen by popular vote
volunteers
selected and chosen by a federal agency
Municipal and County level sherrifs have always been elected by the population of either the city or county population by direct popular vote. Today most sherrifs are still elected officials.