obligation
Obligation is when you do something you don’t want to do just to make someone feel good.
I cooked her dinner because I felt obligated. She didn’t even eat it. She just laughed at me.
He paid my rent because he felt obligated. Now I owe him a favor and I have no idea what that means.
She came to my birthday party because she felt obligated. She brought her ex and her dog.