To buy something quickly, either because it is a bargain, or because it is in short supply, or because it is something one has been searching for.
When I saw the penny black missing from my collection in the shop window, I just went in and snapped it up.
Wikipedia foundation.