Part of the problem stems from the sheriffs relationship with the county commissioners.

Good commissioners and the Sheriff is often one of those we appreciate.
Bad commissioners and the fight is on.

Our local Sheriff for example.
Our commissioners hate the Sheriff and won’t allow him to fill vacant positions. Right now we are 6 deputies down across the county. And they don’t want the deputies patrolling the other side of the county. Which means a 30+ minute response time for many things.
Even the jail was below mandated minimums and they were forced to hire people, much to the displeasure of the commissioners. Who’s to tell them what to do?
The law? Bah.

Gonna stop there before the rabbit hole widens up.