The People's Republic of China never instituted a socialist
economy onto Hong Kong.
On the night of the Handover of Hong Kong (July 1, 1997), the
Chinese government promised Hong Kong freedom in all matters
excepting military authority and international relations.
Therefore, Hong Kong was allowed to keep its capitalist government
and economy.