I'd question that. My wife is a former bond trader. At one point, the guys on her trading desk took her out to drinks, and one asked her, "So, are you still a virgin?" She was about 25 at the time.
Do you think tech doesn't have these problems? I suspect you're going to say that you've never personally seen it, but culture can vary a lot from desk to desk in finance.
Stereotypically, you have cash equities at one extreme and exotic derivatives at the other. Outside of banks, the culture at an HFT firm or quant hedge fund will be completely different from the culture on a "bro-y" bank desk.
Yes because tech is much more culturally diverse, with large amounts of immigrants and second generation children of immigrants. If you've ever worked at a large tech company, you would know that the average team is very quiet because of the cultural barriers. The few Americans on the team are very introverted and again have a slight cultural barrier even with each other because many of them are the children of immigrants. The frat % is undoubtedly much lower in tech (if it's even represented at all) compared to banking.
It's true I would never personally have seen it in tech, but I'll say that my wife has recounted this story to a number of my female friends with 10+ years of experience in tech, and their response is "Seriously? Wow."
While that's obviously not okay, I'd be hard pressed to come up with predominantly-male industry where that wouldn't happen once in a while. Over drinks with inhibitions lowered? Creeper's gonna creep.
Asking a woman who's 25 if she's still a virgin is a clearly loaded question - if she says yes then she's admitting to be inexperienced and should sleep with the the 'man' asking in order to learn the ways of the world, and if she says no then she's admitting that she's sexually active and therefore willing to sleep with a 'man' like the one asking the question.
Creepy assholes use this sort of tactic because they get off on making someone else feel bad. If you see it you really should call them out.
It's context. The scenario plays out differently in most peoples' heads if said to a 40-year old veteran of the industry vs. a 25-year-old new hire vs. a 19-year-old intern. I'd agree that it's inappropriate for all of them, but it's inappropriate in different ways.
I suppose there's more to this story than you're telling, because on the face of it - all I can say is people ask other people such questions over drinks, regardless of gender.