Games allow people to try out things that are not possible for most people in real life.
It includes doing a medieval quest, becoming an action mercenary, becoming a ninja, managing a top football team, building a city, building a theme park, participating in World Wars, building a space program, rescuing hostages etc.
The focus on violence means that such violence is percieved as beyond the reach of most in real life, which is good news.