Another problem is that they are protected by unions and it's difficult to impossible to get rid of many types of incompetent government employees including cops.
Sadly I know about this type of thing firsthand. I was critically injured in a plane crash in the early 90s (I was the pilot and only person on board/injured), and a recent hire sociopath FAA inspector made it his mission to rub salt in my wounds from the get-go. From his first visit 2 days after I was moved out of ICU when he told me his father had passed away in the hospital I was in, a couple years earlier, and inferred it was unfair I was alive and his dad dead, and then proceeded to call me stupid for flying a single engined plane at night on an instrument flight plan, to sending a certified letter several weeks later to my hospital bed in a nursing home where I was lying helpless and in a hospital gown demanding I surrender my pilots license to them so I "wouldn't be tempted to fly until I took a checkride with them proving I was competent to fly", to the next year when I was finally mostly recovered and started jumping through hoops with the FAA medical office trying to regain my medical so I could start flying again and take their checkride, he called me on the phone to say sorry, I know you are trying to get your medical back, but I have to revoke your license for not taking the checkride. So I had to hire a lawyer and get help with my congressman to get the FAA medical people to issue me my medical to finally get that checkride resolved. And when all was said and done, I contacted my congressman to complain, and in response to his congressional inquiry, the FAA replied with an outright lie about their actions saying they didn't know I had been working for months with their medical office to get my medical back.
Never once during this did the FAA inspector ever suggest I had violated any rules or was being investigated for charges, other than the time he claimed my license was going to be revoked and I'd be recieving a "letter of revocation" in the mail for not taking the checkride I couldn't take because I didn't have my medical certificate back. And when I hired a lawyer, he said they can't revoke without a hearing and there is no such thing as a "letter of revocation".
This FAA inspector just retired a year or so back after 20 years "service" and is no doubt now collecting a big pension check that we US taxpayers are paying for.
As long as the government continues to not hold rogue and unprofessional employees accountable for their behavior by firing them when they screw up, I will continue to have a very negative opinion of our government. There is no excuse for so many of these stories we see with bad cops and other incompetent government employees on a regular basis.