The brain must have a sort of “cache” like a computer has – a bunch of thoughts, memories, images, lingering in our subconscious that we can quickly access.
Example: I’ve seen my cat in the corner of my eye about 15 times now, looked around and discovered that it’s just 3 socks arranged in a vaguely cat-like shape.