Throwing it back in your face

Rose
How do you feel about someone throwing something that they did for you back in your face?
For example:
 A:  can I have a bite of that? 
B: No. 
A: "I did buy you food when you didn't have any money...but if you don't want to share with me that's fine." 
Seriously I think it's so rude and annoying.  Just because you do something for me means that I have to repay you?  I would do something in return but for you to remind me what you did for me is just rude.