We didn't take into consideration the justice system's complete lack of appetite at holding officers responsible for egregious violations of life, civil liberties, and property rights.
After sitting through jury selection last year, I think that's definitely part of it.
But you also have to consider that:
(1) the standard for a crime is actually much higher for a police officer than a civvie. It's something like "would a reasonable officer act this way in a similar circumstance" and the attorney spends the rest of the defense case adding to the onus of the prosecutor
(2) the officer's coworkers are the ones gathering/storing the evidence and pressuring the chief + prosecutor to neither bring a case nor follow through with it
(3) just like a criminal is the best person to be able to get away with a crime, so is the person that spends all day investigating and interviewing criminals. Since a lot of felonies require intent, it's especially difficult to investigate intent if the suspect is very knowledgeable about the tools you would use to build that case. And even if the individual officer isn't, they have union reps and lawyers to assist. The investigators might even depend on the same union reps/lawyers and their own dues pay out the longer those services are needed.
(4) police unions are extremely good at disseminating legal information to their members/constituents (for lobbying, voting, and rallying purposes). They have been caught creating "copaganda" (pro-police propaganda) in social media recently.
(5) union leaders poison the well of investigations in the local media as soon as an officer is investigated
(6) the police union pays for the defense attorney most of the time and they specialize in defending officers all of the time
(7) the police unions have crafted very difficult barriers to firing officers (see POBoR, LEOBoR, lots of employment contract clauses) so the bad ones end up staying on the force, even if they collect a large number of complaints
(8) there is inevitably the discussion of how "hard" the job is (it's honestly really physically tiring, occasionally dangerous, requires lots of concentration + short term memory, is emotionally taxing to see the physical and mental toll of crime, ) and the defense attorney will always bring this up
(8) there are specialist police trainers that act as expert witnesses in what the police are trained to do and what the police mentality is when then encounter a suspect (eg. they are taught to always expect at every second that a suspect could be an armed murderer and a suicide terrorist, so they act accordingly)
(9) prosecutors sometimes tank / sandbag the prosecution because they still have to work with all of the coworkers of the defendant who frequently think it's a violation of trust to bring charges against a cop (no matter how bad the officer acted). A DA / ADA who can't get police to supply evidence or work a case isn't a DA much longer. I don't think 99% of police are acquitted / never see trial unless this is a significant component.
(10) the average person that doesn't want off jury duty has hero worship of authority (judges, prosecutors, police, military) and they aren't challenged on that mentality unless they say a couple of key phrases