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.
Interestung history here...
https://en.wikipedia.org/wiki/Panama_Canal_Zone