The need to be liked is more than just a socially-manufactured desire. It’s also a workplace survival tactic. And I hate to say this, but even with a similarly contrarian (oxymoron?) nature, I probably would have responded the same way in this surprising situation.
Frustrating (but good) reminder to be prepared and to ask for context early on, regardless of what the conversation is.