I think the ATM isn't actually dispensing cash. You're doing an ATM transaction for a certain amount of money, but what you're actually getting is weed.
It's not just "You can buy with cash, and we conveniently have an ATM available to get cash if you didn't go to your bank."