You also do most of your learning during sleep, which is why you 'dream'. During sleep your brain takes all the info you input in your brain during the day and puts it in your brain in nice neat order. That's how you remember stuff.. pretty nifty huh. I had a college professor explain it all and it's quite amazing what the brain does while you're asleep.