From Cube World Wiki
If you gain enough of them, you level up.
The amount of XP earned varies depending on the monster you kill
Each level you go up increases your stats.
- In the future an option to disable XP gains may be implemented
- Since there is no level cap currently you can level infinitely.