There are a lot of steps that come between an arrest and a conviction, and between conviction and sentencing. And throughout that winding process, a prosecutor's decisions carry enormous weight.
Does the prosecutor accept the case? Does she have the defendant jailed before trial? Is a plea bargain offered to the defendant, and if so, what are the terms?