Ultron can't see the difference between saving the world and destroying it. Where do you think he gets that from?
Iron Man vs Ultron