Meaning of “wherever” - Learner’s Dictionary

wherever

adverb uk us /weəˈrevər/

used to ask in what situation or place something happened, especially when the person asking feels surprised:

Wherever did you get that idea?

(Definition of “wherever adverb” from the Cambridge Learner’s Dictionary © Cambridge University Press)