I agree, solving a problem peacefully should give just as much XP as solving it through battle.
You don't get to loot their stuff, but you also don't take damage, use spells or items, so that should even out.
They'd have to make sure that you can't rake in double experience points by solving the problem by talking, gaining XP and then just backstabbing the NPCs to get their killing XP an top.