[edit] Aldi did automate the management of getting shoppers to do that work, because there’s not a person standing there taking and handing out quarters, but (very simple) machines. Without those machines they might need a person, so that hypothetical role (the existence of which might make the whole scheme uneconomical) is automated. But they didn’t automate cart return, all that work’s still being done by people.
Like checking in at the airport via kiosk/app for example. Do you consider that to be "doing the work" of the desk clerk? Or say ordering at a restaurant by scanning a QR code, in both cases I have to look at the menu, decide what I want, and input my order into a system. But with the QR code there's no longer a human necessary.