I remember commenting here on FR that every time a cop puts on the uniform he or she is a target for the entire time. And some here scoffed at that idea. I wonder if they think that way now. As a cop told me, he had to be on the alert the entire time. One small mistake or few seconds of inattention could cost him his life.
I think most of those people, like many I know in my day-to-day life, were kids in the '60s and '70s who grew to hate cops because cops prevented them from smoking pot wherever and whenever they wanted. A LOT of people carry that grudge to this day.
My son is a cop. His department requires him to be armed, even off duty. He can either carry concealed or open but if he carries open, his badge must be showing.
He does not open carry while off duty, he says that badge showing is like a target.