With that said the principle of human psychology I've established still holds. Their irrational behavior (in this case as you mention, actions that are inspired by impulses) are a result of an irrational worldview which has resulted from unsound communication between them and their instructors and likely their unsound analysis of the instructions which has likely inscribed undesirable maxims into their belief systems. Such ethical principles have likely been so thoroughly imbued in their psyche that they appear second nature to them and thus manifest in the form of impulses.
As aforementioned, another way this phenomenon could be observed is also due to irrational thinking, or some kind of flaws in reasoning. That is lacking sound maxims which ought to prevent one from acting out on impulses. A rational thinker would carefully analyze the situation and establish the sound maxims.