Because the US system is adversarial. DAs work with the police to try and convict people. DAs are often very politically motivated in their decisions of who to prosecute and for what charges (throwing the book at people).
Judges are independent from that. They’re supposed to act as a check against the excesses of the DA office.
Judges are independent from that. They’re supposed to act as a check against the excesses of the DA office.