You get experience for killing monsters, so the only person who would get xp is the one dealing the death blow