The legal system requires minor technical hurdles to be passed to "prove" guilt. Experienced prosecutors know that the facts of a case are irrelevant (as demonstrated here, very starkly). Get enough of your check-boxes filled in and you "win" and you're up for promotion based on all your wins (or election to higher office etc.). That's all a prosecutor is interested in (i.e. their own promotion, building a track record of winning).
Justice, I'm afraid, does not get a look in. Sometimes, by coincidence, it may meet, but that's never by design on the prosecution side.