basically if they were sentient, they had a sense of morality, and had souls, and wanton slaughter of them was wrong, and he never really resolved that contradiction en.wikipedia.org/wiki/Tolkien...
en.wikipedia.org
Tolkien's moral dilemma - Wikipedia