Having enough money to have the direct line to someone important in a political party is valuable. Enough prosecutors have a mind for future ambitions and understand that some battles just aren't worth fighting.
That doesn't make for straight up immunity, but it does change the calculus enough that so long as no one else really cares about your crime, they can let it slide or negotiate it down to something trivial.