Sometimes they can. There was no real evidence in the case in question, only a witness who was essentially lying. The district attorney offered a deal to avoid going to trial with such a flimsy case. The woman had a choice of risking a trial or taking the deal, which avoided jail.
Since there was no trial, there is no way to determine the quality of the evidence.