It is also political rather than a normal duty associated with keeping the peace.
If police officers swear an oath to protect the Constitution, (something I see little evidence of) then most of them are oathbreakers.