This is an example of “Selective attention”.
Selective attention is the way toward concentrating on specific issues, sounds, objects in the surrounding for a specific time-frame. Attention is a restricted asset, so selective attention enables us to block out irrelevant subtle elements and spotlight on what truly matters.