Again, it really has nothing to do with morality or just deserts. Risk management is just a valuable thing that banks produce. They take risky deals, and manage those deals to try and make sure that nobody has to materially feel the risk. Sometimes they fail, and they're rightly criticized for that, but more often they succeed.
The student loan crisis is a good example of where people's misunderstandings of finance lead them astray. There's a pervasive idea that the crisis is related to banks making it irresponsibly easy to get a loan. But since 2010, the vast majority of new student loans have come directly from the Department of Education, generally with lower prices than private lenders offer.