The simplest reason: they give you something to do when you are bored.
Beyond killing time, games offer challenge, stories, competition and a way to unwind with friends, which is why they have become one of the most popular forms of entertainment there is.