It's to do with your conscience thought; and the state of consciousness you are in. Generally, when you are studying you are either:
A) Focused and awake - You recall information and are not distracted
B) Distracted/bored - In which case, you are thinking about things that interest you or random conscience thoughts that appear in your mind.