The ability to explain the origins of a virtue does not make that virtue any less praiseworthy.
When someone offers you a compliment, and you respond by explaining away your positive attributes in terms of how your mother raised you, what city you’re from, or how many advantages you’ve had, it doesn’t change the fact that your goodness is still worthy of being appreciated.
There’s nothing wrong with getting it right. So when someone applauds you for doing so, don’t treat them like they’re being irrational or unethical.
When people compliment you, it’s not because they’re under the illusion that you’re a perfect, self-sufficient being whose never had any help. It’s simply a kind way of saying “I appreciate you” or “I admire you.”
It’s already a rare experience for most of us to feel celebrated. So when it happens, why not allow it?
Ease up on the scientific explanations for why you refuse to be impressed with yourself and just allow the other person to have their moment of gratitude.