Such experiences demonstrate the cocktail party effect. This phenomenon occurs when in a place with many voices, as in a party, we can concentrate on a single conversation, but also when listening to a keyword from another place in the room, like our name, we can focus on this new stimulus.
I hope my answer can help you.