Police are trained to be paranoid as fuck about everything, for good reason. You guys don't understand how quickly things can go from routine to death. Just look up videos where a traffic stop turns into a shootout to see what I mean.
So when a cop sees a gun and his directions aren't followed calmly and exactly, things will get nasty.