I'm reading this answer on Bose's Sleepbuds product page, it says:
Is there any place where I can find more information about how different sounds combine in inner ear?Masking works because of the way different sounds combine in our inner ears; if they have the right match of frequencies and the masking sound is just enough louder than the disturbing sound, the inner ear and brain cannot detect the disturbing sound.