This is implicit learning—a different experience from explicit learning. Explicit learning is how you memorize a poem with spaced repetition and conscious effort. Implicit learning is (in part) the learning system linking stimuli across time and space.