The mechanical failure could be one that renders the vehicl immobile, ie cannot be pushed or towed or even coasted.
It could just have been a blinking red light saying STOP which the driver did, albeit in a stupid place.
Roadcraft is a defensive driving system. If I recall my driving course of 30 years ago…."it is a system or drill, each feature of which is considered, in order, on the approach to any hazard, a hazard being…."
We were taught everything parrot fashion then and a failure could result from allowing the seat belt buckle to strike the window as you removed it.
The system works, to a degree.. . Go look in your local police workshop yard to see the huge pile of bent patrol cars generated by trained drivers.
We were also taught to depress the handbrake button prior to pulling up on it and releasing the button to allow the ratchet pawl to engage. This not only allowed for silently approaching a suspect but also reduced unnecessary wear on the ratchet mechanism. A few years ago they had to remove that piece of training as vauxhall handbrakes were so shonky they would release if following that method. A man was killed in leeds by a driver less van that the handbrake released on. Now the handbrake must be pulled with a resounding buzz from the ratchet.
The bottom line is that we as a species evolved to move and react at our maximum bipedal speed, that's why we rarely bump into others on foot. We simply do not possess the mental and physical abilities to cope with the speed of travel of modern vehicles. We've been walking for millennia, driving and flying for only a century. It's a wonder there are not more incidents on our roads.