>They still need to be fed though, energy, iron, etc.
But just like humans can help each other, robots could help each other too. This includes digging up various resources, finding means of power generation etc..
Of course, but none of them is working for free, each consume energy and materials.
Otherwise you could say that humans are working for free as well, as they can cultivate their own food and even build themselves by making babies.