Of course, most of the area of Hong Kong (the New Territories) was only leased. It was decided that Hong Kong island and the Kowloon Peninsula, the actual territories ceded to Britain Gibraltar fashion, wouldn't be viable without them. I do suspect though that the size of China's army played a part in the decision though!