Substitute PANAMA for Hong Kong and ask the same question...
Because the British had no means of keeping it if push came to shove with the PRC. Run to the UN and whine would be their only option. That wasn’t our excuse.