The main reason why such a large portion of the population during this time in the United States shifted from rural to urban areas was because industrialization had created many more employment opportunities in the city factories.
Racial oppression and prejudice, fitting into the cultural normalities and societal standards, finding a job, possibly learning the language which they are not fluent in, etc.