Yup, you're right. In industry, that's called a near miss. It's treated with the motions as though you were hit by that car, but none of the consequences are enacted, since nothing in fact happened (YMMV). Basically, it's a freebie: lessons are learned without anyone getting hurt, which is about as good as it gets.
Near misses must be analysed and acted upon to be a useful force in accident or disaster prevention. Such actions can include changes to the facility, changes to protocol, but also educating or punishing workers.
As an example: Misconduct causing a near miss, such as smoking or using open fire near chemical storage, is grounds for instant dismissal, even in the "socialist" countries of NW Europe.