There’s no incentive to convict the right person, if you’re a prosecutor or a cop.
If prosecutors were punished for every conviction that is later overturned then they might be more reluctant to push for conviction on flimsy fabricated evidence.
Convicting a poor black man who dropped a cigarette butt at the scene hours prior to the crime may ultimately be far easier than finding the actual perp.