God, being sovereign, had a reason for Jacob to go to Egypt, which was part of His plan to make Israel a great nation there.
Watch the Teaching: What Happens When All Things Are Gathered in Christ?