Especially with empaths, they can sort of take over your mind for a while. I had the same experience in the past, although it was definitely distinguishable from the daydreaming I knew, which was more often just activated because of boredom at school or as a "passive pastime" in the train.