no opportunity means they were following too closely.
if the car in front of you suddenly comes to a complete stop, you need to have enough time to brake to prevent yourself from hitting that vehicle without changing lanes.
if you are so close that you can't stop in time in that situation, you are following too closely. end of statement.
yes that does happen to cars, by the way. a car driving at speed X which hits another car head-on at speed X will cause both cars to come to a complete stop, instantly, provided they are the same mass. usually they are not the same mass, so that car which you were following could suddenly not only stop, but change direction and accelerate towards you.
crashes also usually don't happen head-on, so you must be ready when the inevitable does happen to you or around you. sometimes you can't prevent what happens, but you can always prevent colliding into the car in front of you.
these things happen hundreds of times per day, if not thousands of times per day, EVERY DAY.
If you don't make time to stop, you do not have time to stop.