The German ID card is sufficient to allow travel within the "Schengen" coutries- ie, those countries which are signatories to the Schengen agreement.
Schengen Agreement
The UK is not a signatory to this agreement. Furthermore, the German border police do not have the authority to decide what forms of identification is acceptable outside Germany! Perhaps you should have asked the
British immigration service...