As a part of sleep, your brain sorts through information that’s going to stick around for a while and junks the rest.