Because you got up in the middle of the night and did it as soon as you woke up.
In fact, you don't have to be so superstitious. Dreams don't really mean anything, but you may think about them day and night.
But it doesn't mean you can only dream if you keep thinking about it. In fact, it is possible that anything you think of during the day, which flashes by, may make you dream.