What the hell does a uniform have to do with it?
The uniform immediately tells thugs that the person is a cop. That makes him or her a target.