> If it was actually perfect grammatical accuracy on their part they’d be saying “Who were you talking to” or “Who were you speaking to”.
There is a sizable contingent of English speakers out there that continue to insist that it’s incorrect to end a sentence in a preposition. (I am not part of this group and it is fortunately shrinking over time.)