The answer is: Rules were created to control former slaves.
Police regulations limited the freedom and autonomy of freedmen after the Civil War in the South. The Saint Landry Parish, Louisiana police regulations were one example of how Southern legislatures wanted to preserve as much of the master-slave dynamic as possible.