Hearing her name being spoken in this situation is an example of "the cocktail party effect".
The cocktail party effect is the trend of the mind's capacity to concentrate one's auditory attention, an impact of specific consideration in the cerebrum, on a specific stimulus while sifting through a scope of other stimuli, as when a party-goer can center on a solitary discussion in a room full of people talking.