Have you ever had someone open the door for you and get upset you didn't automatically say thanks?
Normally I like to wait until the end of the event taking place that might require a sentiment of gratitude... So I know how genuine to be and I like seeing the reaction of the other person(s) involved.
Sometimes it's anger...
Extra thought: Well since this clearly wasn't a selfless act, maybe next time you should just not.