It’s very simple really. Police officers everywhere are no better, no worse than the citizens they serve.
Do you live in a city like Portland or Minneapolis or Chicago? Do you elect people like London Breed, Nancy Pelosi or Gavin Newsom? Then you deserve the rotten, awful, corrupt police force that controls you.
Do you live in a conservative decent community? Do you elect competent qualified individuals? Then you can count on and depend on the support of your local law enforcement agency.
And the County sheriff is a primary fulcrum upon which the oath pivots.
...then maybe the DA, which explains the soros backing of leftist DAs and SAs.