That was my first thought. The cop’s presence encouraged illegal and dangerous behavior. Which is what happens when “protect and serve” is replaced with $ quotas.
I’ve seen the same thing with speed traps on my commute on a freeway. Traffic is moving fast but is moving safely as one. And then some drivers see the cop and hit the brakes and others don’t and so a multi-car car collision happens right in front of the cop.