I went to make some coffee in the kitchen.
1) I noticed that a drawer had been left open. I closed it.
2) After making the coffee I remembered that I needed a knife for my apple, so I opened the drawer and got one out.
My brain now says to me: Maybe you can walk off now without closing the drawer, because you've already closed it. You could walk off without closing it and then look round and it would be closed. Maybe step (1) happened *after* step (2) and you just forgot which order they were in.