This is because chocolate contains epicatechin, which is found out to help improve blood flow to the brain, thus improving memory function. Aside from that, most chocolate contain caffeine, which makes you alert, making you study more effectively and retain as much information as you can.