A lot of pedestrians are kids, who by their nature are erratic. Saying that it's the kid's fault for getting hit because they were "erratic" is effectively banning children from walking places, which is exactly what the US has done ("WHy don't kids play outside anymore???")
The person operating the dangerous machinery where there could be people walking bears responsibility for not hitting people.