In the past > hukou system...
People in the countryside had to stay in the place where they were born otherwise they would lose the right to facilities and amenities such as education, housing and health care.
... and a floating population
There were still many ‘illegal’ migrants (about 250 million!) due to the wealth gap between rural and urban areas > floating population