Educational Practices behind Gamification

How do theories in education support gamification? I think there isn’t a more convincing argument for gamifying your classroom!