Not losing consciousness, but feeling as though im in a dream?

A little bit ago, I was in the shower (slightly tmi but you know...). Anyways. I was thinking about all the events that happened in the show I was watching prior to my shower. All of a sudden, I felt like I was in a dream. When I finally came back to reality, I was laying in the bathtub feeling extremely confused. And every time I tried to understand what hazard happened, it felt like it never happened. Like a dream. Now, this sort of thing has happened before. In fact, I was in the hospital not too long ago. They said it was dehydration. But I know this can't be the case this time because I hardly drink anything other than water, an iced tea on the rare occasion. Please help me get some clarity...
Not losing consciousness, but feeling as though im in a dream?
Post Opinion