They give XP buffs, then remove the XP, makes no sense!

from what i experienced if you level up in a dungeon you lose the extra mob kill xp