The origin of many (or most) of the first organized police forces in the US were to control slaves and catch runaways.
The police have always been oriented towards protecting the wealthy from the poor.