It probably wasn't but if it was it is most likely to be a false slot/facade put over the real one. You think your card is gone but safely in the bank. You leave, the crooks come out of hiding and remove their false bit of ATM and your card comes with it. You did right - cancel your card straight away - before leaving the ATM if possible.