How You Start is How You Finish? The Slave Patrol and Jim Crow Origins of Policing
americanbar.org
Though history books may say otherwise, policing in the United States has its roots in the slave patrols in the South. The institution of policing, and the larger justice system, must reconcile its past in order to evolve away from its racist roots.
Law enforcement has been around since the dawn of laws. Jim Crow is millennia late to be the origin.
Clearly the article is not talking about the global history of policing, it's talking about American history of policing. You can infer that because Jim Crow laws are American laws. They didn't have Jim Crow in Sweden.
As for the history of American policing, again, the article acknowledges that American policing has 2 lineages that merged over time.
There's no one "origin" to American policing.