This white noise can be detected by a pickup device and cancelled by noise cancellation circuitry provided within the eyemask or night cap.
The audio output from the speaker serves to cancel the white noise of the user's environment.