Why does this phrase have a pronoun-antecedent agreement? "When a driver wants to buy a new vehicle, he or she usually test drives it."

What pronouns are you dealing with here?

To what noun earlier in the sentence are those pronouns referring?

Both need to be singular, or both need to be plural. What do you see?