There's precisely two ways of increasing the profit: 1) raise the prices, or 2) reduce the costs.
Amazon took the second route. They still can't automate everything. If they could, they'd do so already. Workers are what keeps Amazon alive today, even if that might not be the case in the future.