Sounds like (to me) you were having an OBE, or Out of Body Experience. As I've heard, it's a very high lucid dream, but I like thinking your conscious slipped out of your body. Maybe you should look into Astral Projection?