I think is a limit of the speed variable (when programming variables have limits of how big the number can be). And to prevent the speed going above the variables limit the car is reset. Otherwise it would cause weird things, like the car going at a negative speed etc.