Why would there be passport checks while you were in transit airside? You technically never entered Germany. Would you have tried to leave the terminal to landside, you would have been checked by the border police. As you were not trying to do that, it was up to UK border control to check you leaving the country of departure (which the UK does not do, contrary to many other countries) and the Ukraine to check you entering Ukraine.