Cops are an extension of the prosecutorial powers of the state.
Their job is not to serve and protect, that is Orwellian.
The police are supposed to be the impartial eyes and ears of the impartial criminal courts. They are also supposed to keep the peace.