It means that sometimes we excuse death by claiming the death furthered a worthwhile cause. See the history of any war. In this sentence, people died for nothing.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.