it's important not to conflate federal loans with private loans. neither can be discharged during bankruptcy, but only federal loans are guaranteed by the government. also, the government sets the interest rates on federal loans.
a private student loan is not a particularly safe debt to issue. even though the loan cannot be discharged, there is still a substantial risk that the borrower will never be able to pay it back. credit cards and personal loans are a pretty good comparison IMO, as the main difference is the fact that student loans cannot be discharged. this is in fact priced in already; even private student loans have much lower interest rates than any other kind of unsecured loan.
a private student loan is not a particularly safe debt to issue. even though the loan cannot be discharged, there is still a substantial risk that the borrower will never be able to pay it back. credit cards and personal loans are a pretty good comparison IMO, as the main difference is the fact that student loans cannot be discharged. this is in fact priced in already; even private student loans have much lower interest rates than any other kind of unsecured loan.