It is not they way todo it agreed on that, but it can be one of the only way of getting hand wavy persons to get technical. Interviewing can be frustrating when you do not see what you expected. So no need to believe it was done toxicly.
I sympathize, your experiences are of course different from mine. Hostile is such a useless tactic at interviews that I just find it mind boggling that someone would do it on purpose.