Killing off major characters has been going on a long time. Ever seen Romeo and Juliet, Hamlet, Julius Caesar, or Macbeth? In every single one, the title characters (and others) end up dead by the end. Would these stories be as powerful without major character deaths?

Aside from that, in real life, people die. If art reflects life, it only makes sense that, in some stories, characters are going to die.