Their clients think they provide an economically useful function - otherwise they wouldn't use them. Do businesses really need more justification to exist than that?
Also:
- The bank wasn't directly interacting with the airline, they were buying bonds from other organisations who were holding them
- Lots of people risk other peoples money - fund managers, pension companies, VCs, hedge funds etc. - with varying degrees of risk and exposure by the people actually doing the investing.