Credit card companies run sophisticated anti-fraud operations in real time. Visa "analyzes more than 500 unique risk attributes" the moment you attempt to make a purchase with a card.
They make decisions in milliseconds on each purchase to determine whether it might be fraud. This includes looking at past purchase history to see if this transaction is unusual.[1]
[1] https://usa.visa.com/visa-everywhere/security/outsmarting-fr...