The whole thing depend on how the thank you was delivered.
It doesn't mean thank you means a sincere thank you.
In this case I believe it wasn't.
In this case, it is better for the driver not to say thank you.
Becos at once I was in a massage parlour, when the okt asked the row and row of masseuse cat walked in front of me, and I didn't liked any of them (becos all fat fat), the okt also said thank you, but apparently it was a fuck you kind of thank you, just a different word used.