The difference is you _can't_ do that for student loans. There is no option to get rid of them via bankruptcy.
So, this happens instead.