problem is, the real world can throw so many complexities into a situation that even the most intelligent and moral of human's have trouble making a good decision.
There will be factors that robots will not be able to process, at least not for years well beyond the initial development.