Having only seen the 'wheel of justice' grind people up from a distance, I'm not really sure, but my intuition is that prosecutors make careers out of getting successful convictions, and they absolve themselves of any responsibility by telling themselves that they are merely advocating for the state. So if they do something wrong, it's really just the state at fault.
I'm not saying all prosecutors are horrible people who want to ruin lives indiscriminately, and they serve a valuable purpose, I'm just worried about the feedback loop we created.