Yoga Sutras 1.10
Patanjali, explained by Swami Vivekananda
अभाव-प्रत्ययालम्बना-वृत्तिर्निद्रा ॥
abhāva-pratyayālambanā-vṛttirnidrā
Sleep is a Vritti which embraces the feeling of voidness.
In plain words: Sleep is also a thought-wave, one filled with a feeling of emptiness. We remember having slept, which shows the mind was still active.
Swami Vivekananda explains
The next class of Vrittis is called sleep and dream. When we awake, we know that we have been sleeping; we can only have memory of perception. That which we do not perceive we never can have any memory of. Every reaction is a wave in the lake. Now, if, during sleep, the mind had no waves, it would have no perceptions, positive or negative, and, therefore, we would not remember them. The very reason of our remembering sleep is that during sleep there was a certain class of waves in the mind. Memory is another class of Vrittis which is called Smriti.