Highway hypnosis
Explanation:
According to my research on different causes of highway accidents, I can say that based on the information provided within the question the term being described in the question is called Highway hypnosis. This is known as a mental state in which a person can drive a vehicle long distances in a safe and correct manner but still have almost no memory of having done so, instead you believe you were stationary the whole time.
I hope this answered your question. If you have any more questions feel free to ask away at .