It makes more sense if you start from the premise that there are “good people” and “bad people”, and bad people need to be punished to protect good people. The people who do the protections–like Joe Arpaio–can do no wrong. Even if they seem to do bad things, that’s just in the service of protecting good people.
This premise is bullshit, but everything follows from there.