Boundary Event
I need to preface this by saying I don't know if it is true, or if I'm recalling it correctly, but I this heard once from a reliable source, like a TV or radio, and I like the idea.
Apparently every time you walk through a door way your short term memory is downloaded into your medium term memory and your short term memory is erased. That's why we keep walking into rooms and forgetting why we were going in there. The theory was it's an evolutionary throwback to when we were hairier and we left tall grass or a forest and had to have our wits around us to be alert for predators.
Even if it isn't true, it's a great excuse for being absent minded at work.