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.
4.7m questions
6.1m answers