A more egregious case than most [https://archives.fbi.gov/archives/springfield/press-releases...].
Usually it’s as simple as the cops looking the other way in exchange for ‘freebies’.