The AG isn't neutral. She represents the state. The defense attorney represents the accused. The judge and jury are neutral.
....to What does it say at the beginning of Law & Order?
Opening. Narrator: In the criminal justice system, the people are represented by two separate yet equally important groups: The police, who investigate crime, and the district attorneys, who prosecute the offenders. These are their stories.