It is the difference between knowledge (retention of individual facts) and wisdom (knowing what they all mean when you fit them together). Or, said more simply, learning versus comprehension. REM sleep allows your brain to move beyond the former and truly grasp the latter.