If someone was harassed or the victim of a crime every single time they interacted with a person of a particular ethnicity, I wouldn't be able to blame them for being prejudiced. I have known various blacks, Jews, Muslims, Mexicans, and Catholics throughout my life, and while some of them were dicks, most of them weren't. The same isn't true of the cops I've interacted with.
Of course there's also the issues of sampling statistics. If I had only had experiences with cops in one place, I would consider the possibility that perhaps it was merely cops in that particular area who were jerks. If I had only had experiences with a few cops, I would consider the possibility that perhaps I had simply had bad luck in which cops I encountered. But after a significant number of encounters spanning multiple decades in various states, I'm starting to strongly suspect that it's not just a sampling problem. Of course, I am always open to new data. Once I start encountering all those competent, professional cops that I keep hearing about, my opinion might change.