There is a moment most parents recognise. A relative hands a child a gift, and the parent leans in with a prompt, "What do you say?", and the child produces the two words on cue, eyes already elsewhere. The relative smiles. The parent feels a small relief. And the child learns that "thank you" is what you say when an adult is watching, not something that has anything to do with how you feel.
That reflex is not ingratitude. It is just early social training, and it is almost universal. The trouble is that social training and genuine gratitude are not the same thing, and one does not automatically grow into the other. Gratitude as a felt experience, the recognition that something good came to you through someone else's effort, develops slowly, and it develops through specific kinds of experience, not through repetition of the phrase.