Tons of thieves do all kinds of crimes like this, all the time. Though I would imagine that now that chip cards are commonly available, the window for the thieves is closing. (chip cards are much harder to steal from)
Sometimes they are caught, sometimes not. Identity theft in the United States - Wikipedia
Apparently the thieves collectively steal 24 billion dollars, more than twice the total of all other crime. The reason for this is that it is fairly easy to get away with for a long time.
Physical theft of unoccupied structures? Someone will eventually show up and report the thief to the cops. The stolen goods, if it’s expensive stuff, often has serial numbers and other things.
Cash and goods stolen by identity theft doesn’t leave this kind of trail, and it is possible for the identity thieves to get the information they use online. The problem when the OP’s hypothetical is that if the OP worked as a clerk somewhere, and stole from a few hundred customer’s credit cards, it is quite straightforward for investigators to notice that there’s a cluster, that all the customers who are victims bought from the same place.
That lets them figure out it was the OP. But if the OP bought credit card info from anonymous russian hackers, there’s no such place correlation. Those same crooks online of course sell all the physical card making equipment, etc.
Like any crime, it carries a significant risk of being caught and jailed. The risk is obviously lower but it’s still substantial. It’s also morally wrong, the victims are not just the banks and credit card companies, the individual victims often lose substantial time and money as well, especially if there is a delay before they notice the thefts.
To summarize : yes there are safeguards, no they are not airtight, and there are many thieves out there, collectively stealing a lot of money. Most of them probably eventually run out of luck and go to jail, however, and I am not recommending this conduct, simply pointing out that it is apparently in fact a profitable crime for a time.