HAL was caught with a dilemma where he had to chose between the protection of the crew and the accomplishment of his mission.
Clearly his programmers put the mission first.
What if a self driving car AI had to chose between protecting the person on board and a pedestrian suddenly crossing the road?
How do you program that...
That's why it needs to have its own will. :P