It's a soft cap, not a hard cap. There is only a limited amount of XP available, through quests, killing, and exploring. Once that is expended, you can no longer level up. Larian thinks that you can reach about level 20 through normal play (i.e. not massacring all non-combatants).