My mother has dementia and until she was put into a secure home she had a habit of wandering. On three occasions she was picked up by police after midnight crossing the road.
Your defense of laws protecting drivers is fine, but doesn't cover outliers like my mother who would have been knocked down at least, killed at worst. Is that ok for laws to protect the driver/AI driver from running over pedestrians who have lost their personal safety faculties?