The justice system relies on the concept of guilt beyond reasonable doubt. That standard doesn’t mean “proved to be impossible to be innocent.”
In a system that is in a population of millions of people, there are bound to be edge cases where there’s a lot of damning evidence and people look guilty who just aren’t.
It’s one of the many arguments against capital punishment. It can’t be undone.