There's a publication comparing plea bargaining system of US with the tortures commonly applied in medieval courts to get convictions: http://www.ibccrim.org.br/DPE2014/docs/flavio/torture.pdf
In short, the way the plea bargaining system developed was due to the jury system being too ineffective and time consuming in producing convictions. Thus the workaround which forces innocent people into accepting charges.