I believe that killing NPCs does award experience, but only a very small amount when compared to completing quests, killing 'real' enemies and the like.
It's probably to deter you from going on a murderous rampage through every settlement you come across ;-)