Reason:-
Self Driving Cars, at present are not fully autonomous vehicles, They are Partially Autonomous or Conditionally Autonomous vehicles, which still involve humans to trigger the control.
It may happen to be the car owner's fault in maintenance of the car, due to which the accident occurred.
It can be the person's fault, he might be walking on the road without following the rules, due to which the accident occurred.
But it may also happen to be the developer who didn't check the working code before publishing.
The blame can be assigned to, or shared by, one of many parties – including the car owner, the person, and the developer.
Study more about AI Ethics at AI Ethics Class 10