That was only because they could no longer keep Hong Kong and the handover was inevitable.
Britain also tried to stop Portugal from giving the people of Macau citizenship so they wouldn’t look as bad when they didn’t give citizenship to the people of Hong Kong.