However the people being prosecuted don't know in advance what sentence they will receive exactly. Sentencing is carried out after the verdict (sometime quite a while after if "pre-sentence reports" need to be compiled). There are sentencing guidelines, so they have a reasonable idea or starting point, but there is much variation in these due to many different mitigation or aggravating factors.
Particularly at the "low" end, a person may not know whether they will be getting 33% off a community order or 33% off a jail sentence.
Still, there are very, very few occasions where it is reported that innocent people plead guilty due to the reduction in risk. That may also be due to the reasonable lengths of the starting sentences.
The majority that go through the courts, that is those who are actually guilty, plead guilty. They get a small "reward" for not tying up the courts unnecessarily.
My personal opinion is that in an ideal world we wouldn't offer any plea deals, but we don't live in that world. Yet.
Is part of the plea bargain deal not discussing your innocence? In other words, how do we know whether people taking plea bargains are innocent?