Gaining levels in Duolingo awards you with gem perks in addition to reflecting your success. As a reward for your success in learning a language, you will get gem prizes as you gain XP and level up.