The same purpose as television or film: entertainment. They're a medium for stories, challenges and shared experiences, with the added element that you act within them rather than just watching.