It's the same in a lot of international transfers. You cannot board without being security cleared to the legal standards of that state. Otherwise you could fly Pakistan-LHR-USA with a bomb, all you need to do is bribe a corrupt airport official in Pakistan. This is why all Pakistan-US flights transit Manchester, as they are not trusted by the destination country.