Vast majority of these issues are caused by a card being skimmed by a card reader.
ATMs are no longer the prime "suspect".
Ticket / parking machines and places where a card can be out of sight for a minute (restaurants bars etc) are the most popular places.
And rarely is it a recent skim. It can be from a year or more ago and it's literally bundled up and sold in batches.
Near impossible to work out the original source, so rarely worth trying to investigate and best to just keep a very close eye