Those Starbucks workers don't, that's the point.
Say AI is able to make a machine that makes all the Starbucks coffee varieties, like those workers are currently doing. They get fired. Starbucks continues to charge $7 a coffee and just pockets more money for themselves.