It tracks the trip by smell and turns, not distance
Dogs map a familiar route by the sequence of scent landmarks and the car's stops and turns. That is why they often start stirring on the final stretch โ even with the windows up, the pattern tells them the ride is nearly over.