How would you handle someone who ends up with an aquittal but with certified bail breaches, and was remanded in custody after breaching non-onerous bail conditions? Bail breaches aren't an offence but also aren't exactly something the courts expect defendants to be doing. I think it would be fair in this case for the government to say hey it's not our fault you didn't play by the rules while waiting the outcome of your case. Or likewise if they were eventually aquitted but got remanded in custody after failing to appear in court.
Which could make for some complicated compensation decisions, because in practice decisions on bail are going to be based on multiple factors.