Ideally the use of a robot is supposed to bring down prices on what the factory makes, which redistributes the new wealth to everyone in society.
In real life, we've been shifting ever-more-steadily towards a rentier economy as actual production grows more and more efficient.