There are three factors to consider, although they often get mixed up together.
Firstly, a child takes good parenting for granted. Children are meant to be self-interested. This is how they grow into adults who can take care of other people.
If you force your child to be grateful and think about you rather than themselves, you won’t get a nicely rounded and kind adult. You’ll get someone unhappy and driven by guilt, or someone very resentful. All the things you do right for your child should be taken for granted. They will just complain about the mistakes you’ve made. And this can make you feel guilty.