It's not that they want to imprison innocents; it's a prosecutor's job to get the defendant convicted no matter what, whether or not they personally believe the defendant is guilty.
I think that in some cases, they want to imprison someone, and show that they are doing their job, even if they have serious doubts about the guilt of the person they are imprisoning.
In any case, refusing to allow DNA testing that can categorically establish the guilt or innocence of someone seems to me to be unethical.