If a person does a job of a cashier, should that person be compensated appropriately for their time?
Should we hire five million people to unnecessarily sit and click a button or type out phone numbers to send text messages and connect phone calls to their destination through a switch in the cell networks? We could make it that way. Rhetorically how much would that job be worth? That's why it doesn't and shouldn't exist.
The job it replaced doesn't just go away. The people who made the machine can either sell it or lease it for a profit. That's where the job goes. To the machine-maker.
In reality you're "compensated" by having a burger that costs $5 instead of $10.