I think everyone does this. It reminds me of a possible related phenomenon. The act of remembering what you do takes a few extra brain cells, to enable the “recording function “. If you are on complete autopilot, doing a routine task, you will often forget to turn on the recording function. Like the other day I tried to remember whther I had run the dryer and realized it had been completely optimized out of my memory.

I get that while driving home. I've driven half an hour and then realise I've been thinking about something else the entire time and cannot recall anything about the journey.