Why Learning Apps Work Better With Gamification

Ever wondered why most of the educational apps like Duolingo or CodeMonkey have leaderboards, rewards, and fun challenges?