This is an example of "Classical
conditioning".
The term Classical conditioning is used for a learning process which refers to automatic
reactions that are generated from encounters that happen before a reaction.
Classical conditioning happens when someone figures out how to relate two
distinct stimuli and in that no conduct is included.