Gratitude (Stanford Encyclopedia of Philosophy)

A beneficiary who failed to judge that an act of beneficence had been performed would be unlikely to have the feelings or exhibit the behaviors a grateful person ought to have and do (see sections 3.2, 3.3, and 3.4 below).

Such feelings and behaviors, after all, do not arise ex nihilo in normal people, so without a sufficient reason, we would expect them not to arise.

https://plato.stanford.edu/entries/gratitude/