FWIW, it's not just you; that doesn't make it OK, but at least you're not alone.
The tech industry has a lot of unaccountable poor behavior, in interviews, and in general.
I don't know how we can solve it. For one reason, the bread&butter of some of our most desirable employers is underhanded exploitation, so we can't expect the environment to be a paragon of decency. For another reason, a lot of the other employers are money-losing investment scams, and a lot of what they do, at various levels, is theatre, not having to optimize collaboration towards successful business.
To the extent that companies care about poor behavior, AFAICT, at established companies, it's usually about "compliance" appearances, suppressing legal liabiltiies, and sometimes about morale.
That a person can walk into an interview and sense insta-disapproval from the interviewer, before it's even started (or poor behavior during) usually isn't a high priority, since there will be more candidates. It's not even a morale problem, since the person isn't hired.
(For example, to hear one former Google hiring expert's talk, that company even knows they have problems like this. Yet the snooty frat rituals, with pretense of relevance and objectivity, and unchecked poor individual behavior and biases you'd expect to accompany that, remain. And that's a relatively nice company.)
Thankfully, there's a lot of people who recognize the BS. But even they have constant learning and improvement to do. And it's harder when there's so much bad examples around and thriving. And there's constant new graduates, who are still assuming they're supposed to aspire to and emulate the hotbeds of bad behavior.
All I can think of here is "act locally", try to avoid the jerks, and try to do better in our small circles of influence.
Other ideas, other than fleeing whatever field is attracting the big money weasels that decade?