Prosecutors have almost absolute immunity. A prosecutor can intentionally cheat the system, get a conviction, put a person in jail, and if caught, there is no lawsuit that can be filed against them and it's almost impossible to get them disbarred.
There are incentives to cheat; as long as there are no ramifications for it, it will continue.