The last time I heard this metaphor was in the context of avoiding too much flattery or dependence on praise of others. So, a well-adjusted person does things because they want to, or a have a responsibility to, without relying too much on praise.
I think this framing is useful for a person too reliant on others' opinions for happiness, but even within this framework, you can still feel happy when others appreciate you (while not reliant on the emotion). So, it's still a positive to give and receive gratitude, so long as both people have a stable sense of self and aren't reliant on gratitude for happiness.