I think people underestimate how much the separation of roles matters to the case and to the motivations of the people in each role.
The detectives screwed up by doing a piss poor investigation and identifying the wrong suspect (who is a victim herself in this crime).
The prosecutor cares more about whether they can sell the flawed case to an Arkansas jury or use the low plea bargain cost against the high legal defense cost.