Corruption is rampant in the "developed" world but we just use different words for it.
A town of 300 people I grew up next to, always had their one cop ticketing every car that didn't slow down from the posted 55 mph (but honestly, it was always faster) to 30 mph, or accelerated over 30 before they passed the city limits sign.
The city government loved that guy, because he brought in thousands of dollars every week.
When the NYPD threw a fit over de Blasio, they famously refused to arrest anyone unless "it was absolutely necessary". Why? The police union wanted to hurt NYC's[0] budget.[0] It's the same reason why civil forfeiture is so prevelant.
[0] https://www.theatlantic.com/national/archive/2014/12/the-ben...
But yes, in the general case you're right that law enforcement is a revenue generator.
Unfortunately this situation is by no means unique.
> That has to be unsettling.
And now you know why there has been a growing movement predicated on the idea that the vast sums of money we spend on police may not be well-spent.
The police get a lot more leeway to do bad things because some percent of society just defaults to giving them the benefit of the doubt.