The cost of a trial is significant for the state. They generally do not charge people unless they have substantial, if not overwhelming evidence. The sentencing guidelines are known to both sides. So a deal that skips a trial in exchange for 75% of the expected sentence is a win-win for both sides.