This is true for everything in life. Do some thing alot, and your mind will start processing it while you are asleep.
I used to have such dreams about EverQuest. So I eventually realized I should play less :P
It's called the Tetris Effect, read: https://en.wikipedia.org/wiki/Tetris_effect