The wealth goes to the people creating the robots and the people maintaining the robots.
Automation is a great thing. I'm still waiting for an economic model to be put into place where (decent) food, shelter, and health insurance are provided free of cost because of automation. The necessity of having a job is so ingrained into our culture, I want to see what it'd be like when it's entirely optional.