The way animals learned to stop responding to certain stimuli is called habituation, it is a form of non-assosiative learning, due to the stimuli do not lead to later actions like punishment or reward.
8.8m questions
11.4m answers