In what ways can the acquittal of individuals after long pre-trial detention under stringent laws like UAPA affect public trust in the justice system?

A Delhi court acquitted two people after eight years in jail under UAPA. I am curious about the broader impacts such cases might have on society’s perception of fairness and the rule of law.