Daydreaming and mind-wandering appear to occur when parts of the brain fall asleep while other areas remain awake.