My pet theory is that dreams are the brain booting up/shutting down and the equivalent of old analog TVs that have the flash of static and bloom/collapse on the screen when turning off/on.