Social and legal responsibility. The tradition says that the captain should be the last person to leave their ship alive before its sinking, and if they're unable to evacuate the crew and passengers from the ship, the captain will choose not to save himself even if he has an opportunity to do so.