That was a non-state sponsored migration. Largely it was a mixture of mercantile and economic movement, in addition to refugee movements.
It is easy to get people out of China, particularly after the massive population growth in the 15th century onward. The issue is getting China's government behind it.