Sounds maybe like a 'stress interview'[0], basically they intentionally piss you off to see how you respond to stress. In any event, you dodged a bullet with them, who'd want to work in a place like that?
[0]https://www.topinterview.co.uk/interview-advice/what-is-a-st...