So the short answer is "prosecutorial discretion".
The longer answer might be something like this:
During the crime wave from the late 70s through the early 90s, the American public demanded increasingly aggressive prosecution of crime. Prosecutors offices staffed up in response to it. People were elected on promises of increasing funding both to police and to prosecutors. Prosecutors themselves were incentivized to file more cases, again due to the public mood.
The crime wave passed, but once set in motion, the systemic increase in prosecutions didn't stop: in large organizations, headcount, once obtained, is only released dearly. Managed business objectives (like expectations on percentage of offenders for whom prosecutors will charge with felonies), once established, are only with great effort ever changed.
And so that's where we're at now: a prosecutorial system calibrated to the crime levels and hysterical public mood of the late 1980s.
At this point people are being sentenced to decades for crimes they previously were sentenced to just years for.
The entire situation is disgusting.