Depending on the narrator of the story, police history varies from continent to continent. Or even from region to region. For example, the very first professionalized police were the Philadelphia PD. Their mandate was to control unbridled worker strikes. According to the text, the authorities (that ran the system back then) initially sent in the army to control the crowd. That often led to a bloodbath. Luckily for everyone, the government created the police as a less deadly option. So basically, when people resisted the law back then the authorities did not change the law or the system, they sent in the military to kill them.