We give the police enormous power in giving them the choice on whether or not to enforce the laws. Some of it is out of necessity - obviously they need to prioritize. But a lot of it is pure discretion and cops, being human, will use their power against you if you don't kiss their ass.
This is one of the reasons why I am opposed to laws that are on the books but aren't enforced. They just give the police a reason to harass you for whatever reason.