Cats understand we go through a long period of decreased responsiveness. Instead of sleep or rest, it’s more likely that cats simply understand our routine.
Some cats will naturally learn to ignore us while we’re asleep, while others will have less tolerance for our sleep and simply jump on our heads until we wake up.