When done publicly it engendered feelings of warmth and affection among the people who witnessed it.
The giving of gifts is cultural and is ingrained in our own very being.
It just doesn’t make the receiver feel valued and appreciated, it encourages them to be associated with us.