If you are the type of person to think really hard about different things throughout the day, you can carry your thoughts to a dream later in the night. It happens to me all the time. Or if you are just a really creative person your imagination could make you have dreams frequently.