Good question, I wondered that myself. But in the end, the UK signed an international agreement that allows just that. Not that it is yet ratified by the EU, after all, it might still sink which would bring another whole host of problems, like the immediate and complete loss of traffic rights of the EU into the UK and vice versa.