UK offered a rather simple pathway to immigrating to the UK for most Hong Kong residents [1]. But the choice between the stagnant UK and the booming mainland China was not obvious for everyone in late the 1990s, when China seemed to be democratizing more and more (despite the Tiananmen massacre), and growing richer by the day.
[1]: https://en.wikipedia.org/wiki/British_National_(Overseas)