Why video games are obsessed with the apocalypse

For decades, video games have had a fascination with the end of the world. Why is it that we find it so enjoyable to play games set in the ashes of our civilisation?