It would be cheaper for everyone to just keep you unfairly.
It would be cheaper for everyone to just keep you unfairly.
This is where separation of powers is important. A judiciary shouldn't care that the executive branch is on the hook for compensation.
If they kept someone 2.2 years and then didn't compensate you could argue incentives to keep but after a certain amount of years it seems like there isn't any difference between what they actually are doing and how they would behave with incentive not to let you go.
Aside from that there could be ways to structure compensations, for example a scheme where you get less compensation per year for short time, more compensation per year for longer time might make them want to let you go and cut their losses once they determine you were innocent.
Elected judges and prosecutors may lose elections when the electorate hears they shell out huge compensations, especially to people the electorate is not really convinced are innocent (because unlike the judges, who were at the trial obviously, the electorate learned only a tiny fraction of information about a case from more or less reliable media sources at best, and outright rumors and gossip at worst).
Appointed judges are still appointed by somebody, and that somebody is a (group of) politician(s). These politicians have the same issues as the elected judges and prosecutors, and may avoid this (or even retaliate) by not appointing judges (to higher circuits) that are perceived to be risky in this regard, effectively killing the careers of these judges. So if you want to become an appointed judge, you still better pay close attention to the political scene and play ball.