It was war—they were the enemy—not real human beings.
Sinking a civilian ship packed with civilians is a war crime.