It’s non-dischargeable so that it can be offered to people with no collateral and who are otherwise entirely un-creditworthy.
Not surprisingly, this results in high delinquency rates!
The alternative is most people wouldn’t qualify for this level of debt, you would more highly subsidize cheaper public education, and private universities would have to rely entirely on endowments to provide financial aid to people who otherwise wouldn’t be able to afford to go.
At some point a $50k private undergraduate education (forget about $100k+!) is not for everyone, even if there are banks willing to write the check and put you into that kind of debt.
But think of the outcry if you were to limit the amount of educational debt someone could take on — for example by only making the first $20k non-dischargeable. It would fix the delinquency problem, drastically lower the total annual student loan rate, and cause private tuition prices overall to decline, but it would be called institutional racism.
I think we already went through this cycle with housing, when ~15 years ago politicians started saying that owning a home was a right and everyone should own one, regardless of ability to pay. Zero down, no income verification, guaranteed issue mortgages caused the housing bubble, and we see something nearly the same in education today saddling kids with debt way over their heads, except this time you can’t even walk away from it in exchange for a 7 year credit score hit.