The car behind brakes harder than the one ahead, so one tap on the brakes grows as it passes back
Between seeing the brake lights and pressing the pedal, a driver is always a beat slow. In that beat the car ahead has already slowed, the gap between the two cars has shrunk a bit, and the car behind can only avoid a crash by braking harder than the car ahead. When the gap is wide, that lost bit doesn't matter, and the car behind can even brake more gently than the car ahead.
In other words, with each car further back, the drop in speed gets multiplied by a factor. With narrow gaps the factor is bigger than 1; with wide gaps it is smaller than 1. If the factor is bigger than 1, the drop in speed gets bigger car after car, and further back some car always stops dead. If it is smaller than 1, the drop gets smaller car after car and dies out after a few cars. Which side of 1 the factor falls on is decided by the gaps; no driver is deciding whether there will be a jam.
Once there are too many cars for the gaps, the same rules jam up into a stopped stretch
Have cars drive around a loop on a computer, following one simple set of car-following rules, and you can see what the gaps do. This set of rules is called the Nagel–Schreckenberg model; the numbers below come from this card's own simulation, not from anyone's published results. The road is a loop of 1,000 cells. Each car moves at most 5 cells per step and never runs into the car ahead. On each step there is also a 30% chance that it eases off the gas for no reason. Each car only looks at the empty space in front of itself; the word "jam" appears nowhere in the rules.
With 100 cars, there are on average 9 empty cells in front of each car, a good deal more than the 5 cells a car can move in one step, and at any moment less than 1% of cars are stopped. Raise it to 150 cars, and the average gap is under 6 cells, only a little more than 5. When the car ahead eases off the gas, the car behind doesn't have enough room to keep going as normal and has to slow down too. So nearly 20% of the cars are stopped, and a stopped stretch moves backward through the line. Raise it to 200 cars, and nearly 30% are stopped. Not one word of the rules changed.
Take away the easing off for no reason, and the same number of cars doesn't jam
A jam needs a disturbance to start it, which narrow gaps then magnify all the way back. Change the chance of easing off the gas from 30% to zero, and not one of the 150 cars stops; they all move at 5 cells per step. The number of cars passing any point on the road per step rises from about 0.46 to 0.75.
Emergence is the right lens for traffic, ant colonies and crowds in a transfer corridor, where the overall pattern is held up by neighbors acting back and forth on each other. When the result is just the parts added up, emergence doesn't help: for the total of ten bank deposits, adding them up is enough. Some people use "emergence" in a report as the answer for "the causes are complicated and hard to explain," yet can't say who is interacting with whom or what rules they follow. Used like this, it explains nothing.