Turns out there's a bit of debate about what this is, it's called the doorway effect by some psychology researchers. They claim it occurs when we forget items of recent significance immediately after crossing a boundary or a lintel.