One of the reasons for The Great Migration was the racism which took form of aggression and even lynchings of the black population: around 3 000 people were lynchted in total during this time.
So people were escaping segregation and violence and searching for a better life in the North, were the racism was not as severe.