Ge 47:27 So Israel dwelt in the land of Egypt, in the country of Goshen; and they had possessions there and grew and multiplied exceedingly.
Despite adverse conditions, Israel thrived in Egypt. The rest in Egypt were languishing but Israel was flourishing. This was to show that God's promises to Jacob were in the process of being fulfilled.
Ge 35:11 Also God said to him: "I am God Almighty. Be fruitful and multiply; a nation and a company of nations shall proceed from you, and kings shall come from your body.
Ge 46:3 So He said, "I am God, the God of your father; do not fear to go down to Egypt, for I will make of you a great nation there.