To raise your stats or train in skills and proficiencies, you need experience to swap for them. Exp is gained in a number of ways, including killing monsters, solving quests and puzzles, and performing skills.