They give you hope against the biggest fear ingrained in us - death, and even worse - death being equal for everyone, good person, bad person, both will die.
Or they teach us to fear death. Nothing to worry about death unless you will live afterwards forever and take your memories with you. Now you have to make good memories soon.