This guy is trying to remember which article of clothing he forgot to put on.
Sometimes I’ll walk into a room to get something and then completely forget what I was looking for. I read an article that said walking through a doorway creates an “event boundary” in your brain where whatever you were thinking/doing in one room gets closed up and filed away before you enter another. So it’s actually your brain’s tidiness and not any impending altzheimer’s or absent-mindedness that’s causing you to space out. I suppose this is why retracing your steps can help you remember. My brain must be extremely tidy because it creates “event boundaries” at other times like when I call someone on the phone and then forget who it is I’m calling, or when I go through a list of my entire family’s names before hitting on the right one.