They were most probably having dreams, and they we're very likely, although we don't have the evidence they were very likely using psychoactive substances, and what dreams and psychoactive substances provide is a detachment from the immediate reality and access to this other world. 