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.
9.5m questions
12.2m answers