You assume it's for safety, but it's more likely to be a case that the car can't handle at all and simply stops.
For instance, if there's some kind of minor obstruction, a human may decide to drive over it or go into the oncoming lane or get out and pick it up or follow an officer's instructions.