Using your analogy, let's say someone worked in the factory for a year before they were replaced by the robot. Are they entitled to completely stop working and earn that same salary for the next few decades? A year?
In real life, we've been shifting ever-more-steadily towards a rentier economy as actual production grows more and more efficient.