It might originate from brain physiology. Daniel Amen had done 5000 brain scans 20 years ago, no idea how many until now. From one of his books i learned that contrarian behaviour can come from a disfunction in the Cingulate cortex.
Whatever i say, the first thing my mother says 95% of the time is "No" or another dismissal. It was astounding to see my son acting the same way, answering "No, thats wrong" to things he doesn't even know!
I have been really contrarian for most part of my life. But i realized how annoying that behaviour is and made an active effort to change it. Through repetition it became a habit to respond positively or neutral.