"Traffic regulations are not intended to gain "revenue".
Regulations (laws/ordainances) no....how it's "enforced", yes.
The town of Rockport, Arkansas had been encouraging the police there to ticket drivers (especially out of town/out of state) for literally any traffic offence they could...even driving 2 to 5 miles over the speed limit.
A co-worker of mine (who was also their IT consultant) asked them about it and the cops laughed, and bragged that it was true, and the ticket money was what funded their latest round of raises and the new computer system.
Over the years the town police passed out thousands of these kinds of tickets.
The state received hundreds of complaints, and threatened to cut off state funds.
They kept doing it anyway.
Last year, a group of angry area citizens sued Rockport over the issue....and WON.