It was just a dream on top of another dream. You were dreaming that you were dreaming! Happens to a lot of people. Dreams are an unexplored thing. Some people study them , but they can't really tell what you're dreaming. You just had a good dream is all.