The education being a debt trap is at least in part due to good intentions gone wrong.
College was a little expensive and they wanted it more accessible, so they tried to make it nice and easy to borrow money.
Universities responded to the influx of cash by... Charging more money...
We tried to fix affordability by just flooding that market with loans with no regulation in place to constrain the universities or the loans.