It transferred a huge amount of money from the productive sector of the economy to the government, and also exacerbated "moral hazard" by rewarding companies and executives who made dumb decisions.
When you leave the company or retire, you transfer 401(k) assets to the pension plan, and the pension plan converts the rollover amount to an annuity that is actuarially equal to the amount you transferred, guaranteeing you additional lifetime payments in excess of your basic pension checks.