Demanded them from the French after the collapse of the French government, that didn't happen to the UK & its not like Germany can force them to give it back, so they agreed to cede the territory that the UK directly controlled, ie Tanzania, South-West Africa, that bit of Nigeria, etc.
Still...