They didn’t though. Nobody forced them to leave without a reasonable deal, or a reasonable bureaucracy set up to handle it.
They did that all by themselves.
I think they could have gone for a deal similar to the other non-EU but still kind of EU countries like Norway if they wanted. Because of pragmatism, but that’s not what the Brexiteers wanted.