Games are mainly for entertainment. They give players a way to relax, have fun, and engage in challenges.
Beyond fun, games can also encourage problem solving, social interaction, and creativity. Still, their primary purpose is usually enjoyment.