Banks hardly lose money on loans, they have an infinite capacity to go after delinquents. Try to default on your loan and see what happens to you. You'll be a slave of the bank for the rest of your life.
Of course, individuals bear no such power. So please don't use banks as an example.
"Usually" is quite correct. You basically have to prove there would be no hope of being able to pay it back without severe financial hardship, and the bar for hardship is fairly high. Even when some student debt is discharged in bankruptcy, it's often a partial discharge.