And cops get away with harassing people all the time. The US courts have been doing an abysmal job of protecting the citizenry from police abuse. (E.g. qualified immunity.)
The thing that has been to some extent reversing that trend is cheap and ubiquitous video cameras.
What if the body cam happened to be off, glitchy, or data was just lost on happenstance? What if even if the arrest was unlawful the victim already lost their job?
It does affect you if the police can force you turn off your camera, or if they can later claim in court that video evidence of their transgressions were illegally obtained, and thus inadmissible.
Maybe it’s not working? I’ve seen examples of people getting in the way a lot. There’s nothing wrong with making more specific laws targeting bad behavior.