Surveys consistently find that a large share of teenagers play video games, and the appeal is rarely about the games alone. Play is a way to step out of ordinary life for a while and do things that are simply not available in a school day.
Self-esteem plays a part. A teenager who feels small in the real world can log in as someone who matters — someone who saves the world, leads a guild, or is recognised by strangers. That contrast is powerful, and it helps explain why online games with customisable avatars are so dominant. Players build a look, invent a persona, earn their own in-game money, and dress the character as a celebrity if they feel like it.
The mechanics are engineered to hold attention: constant feedback, escalating rewards, and just enough novelty to keep the brain engaged. Add friends who are all in the same world, and the game becomes the place where the social life happens.
Put bluntly, teenagers get bored easily, and games are where their friends are. That is most of the explanation.