Neither is a dwarf's ability to build things. They're both abilities and not personality traits.
It's not reality. It's a fantasy world. Additionally, it's a literary fantasy world. Real-world concepts of race don't apply.
If you think it's a terrible concept, by all means play a different game, build your own world, whatever. But just because the author doesn't like D&D doesn't mean it's wrong.