The supposed obligation of a prosecutor is to seek justice, not to put people in jail. When the incentives favor injustice, they should be adjusted; public campaigns personally shaming overzealous prosecutors are one possible disincentive that could be added.