I’ve heard this before in the book by Daniel Goleman called “Destructive Emotions”. We habituate our thoughts through our environment. In one of my YouTube videos, I talked about Triggers. Environment and memory create our somewhat autonomous reactions to sensory triggers. If you were nearly killed in a fire, you would probably have a reaction to fire around you, whether it be adverse or not.
