An experience point (often abbreviated to exp or XP) is a unit of measurement used in tabletop role-playing games (RPGs) and role-playing video games to quantify a player character's progression through the game. Experience points are generally awarded for the completion of quests, overcoming obstacles and opponents, and for successful role-playing.
You can receive more experience points for successful role-playing over the completion of quests.