If something goes wrong its easier to kill a being of flesh than the one made out of metal. And robots can repair themself for as much as they want and live immoral life. Humanids with limited life cant. Also robots can build new robots, humanoids cant (unles they capture the machine that makes them).