You thought wrong.
An understandable (// heavy sarcasm) mistake, but generally indicative of an ignorance of exactly which laws a LEO can lawfully attempt to “enforce” without a specific court order to do so.
And also which laws a LEO is expected to enforce, if he/she observes an actual transgression in progress.
If city, county and state cops actually had the authority to arbitrarily enforce any written “law” above their specific legal jurisdictions...we would have an Islamic, Taliban style LEO system.
Is your personal “need for speed” on public highways on which I also travel, worth that kind of accommodation?
ie... a LEO might know that there is a “law” against restaurants having filthy restrooms.
The LEO can cite/report the restaurant to the local governing authority, but he/she can’t decide to haul the owner to jail, when the LEO observes the obvious transgression of the “law” against a restaurant offering filthy bathrooms to the public.
What does any of that have to do with keeping the peace?