Deaths add emotional value to a story. Deaths can be important to a storyline because it effects many things. It effects the other character's emotions, and it's one less character to fulfill things and help with problems.
Also, once a reader has started to feel things from a story, it's harder for them to put the book down. It makes the reader feel a deeper connection to the characters and plot. It adds interest.