Games provide with rewards like Score, Badges, place in leaderboards , etc., which motivates the player to play more and move forward in the game.
Games make you achieve the goal over and over again, which strengthens the players memory.
Games have scenarios where the player has to think fast and achieve mutiple tasks at once. This will help the Player to develop Multi-Tasking Mentality.
Playing games not only helps players to acquire knowledge and skills more effectively but also it allows them to retain information and commit it to long term memory for future use.
Games provide the player with competition like rank, points, leaderboard placement, etc which motivates the player to play the game more.