This happens in my single player game when one character is not near the battle when an enemy dies. So your friend probably gained xp by killings things, or maybe by discovering things (that’s gives xp too) without your character being close to him.