Most people seem to successfully avoid realizing that their feelings are guiding their behavior. They seem to believe that their cognitive mind has considered the alternatives and determined the best way to act. If they really considered the question of why they do a particular thing for a long period of time, they might realize that in one way or another they seemed to have picked it up as the best way from observing and interacting with others, especially caregivers or other leaders of some sort. Likely though they would still ascribe it to a decision their cognitive mind made as opposed to being guided by their feelings or emotions.
It is true that most of what we do comes from our interactions with others, especially caregivers or other leaders during our formative years, whether we act in accordance or contrary to how those leaders acted. However, most of this occurs at a level much deeper than our cognitive minds. It occurs at the level of feelings. Not necessarily at the level of simple reactionary feelings, like being happy or sad, but on the level of our conscience, where things feel right and wrong, safe or dangerous, smart or dumb, etc. And often at this level these emotions feel important to our very identity and security.
Generally our feelings and emotional programming are determined by an interplay of our felt needs, inherent tendencies*, visceral beliefs, and the environment we find ourselves in.
If you do not believe me that what we do is guided by our deep emotions, try to think of a really important decision you made and how you made it. Was it done by trying to play out the most likely outcomes of each decision and deciding which was best. If this is the case you probably used your cognitive mind more than most, but even then wasn't the judging of which outcome would be preferred done at a deeper level of what would make you feel preferred feelings. Even if it was a "selfless" act, wasn't it because that is what makes you feel the way you want to feel.
Finally, please note I am not saying the cognitive mind does not have an important role to play. However, when we deny or do not realize what is going on at a deeper level we often end up with only bad and worse solutions, which often leads to harmful behavior and/or misery.
*(By inherent tendencies I mean our predisposition to fight or withdrawal, process inwardly (introvert) or outwardly (extrovert), blame ourselves or others, be guided by our emotions or try to suppress them, etc, etc)