It's not about "maintaining order". These laws serve as a legitimate cover story for police to harass indiscriminately, as they are widely disregarded, giving a blank check to police to stop and harass anyone based on their own hunches, biases, or prejudice.
It's a bad system, and it has nothing to do with maintaining order, and everything to do with legitimizing police misconduct.
It is not, however -- by any stretch of the imagination -- the goal of civil statutes to enable indiscriminate harassment.
Your anti-cop ideology is leaking. It's unoriginal, uninsightful, and unhelpful.
Do you have any evidence to support this claim? There's plenty to support the idea that these non-crimes exist on the books specifically to enable police to target so-called "undesirables" who would otherwise be breaking no law:
https://lbpost.com/longbeachize/opinion/the-classist-racist-...
Yes, we can certainly agree that this "anti-pattern" occurs, and that it's a perversion of the system. I've been on the receiving end of some technically-correct-but-not-helping-anyone tickets myself. On the whole, however, it is my feeling that police operate as described above.
More to the point, it is not the purpose of these laws to fully suppress the behavior they punish. When applied in a manner to do so, it is a perversion.
This kind of automation gets that relationship exactly backwards, and is not the basis of a healthy balance between freedom and order.