Banks would need to price the risk of failing to get the loans back. Part of that might be refusing loans, but part of that would be raising the price.
Even the most creditworthy student is more risky to loan to when a bankruptcy would cancel the debt. So even they should get a marginally higher interest rate.