Old Testament prophecies are about more than the promised Redeemer’s lineage and birth. God provided numerous facts about His life and purpose to encourage those in every age who would know Him.
“When Israel was a child, I loved him, and out of Egypt I called my son.” Hosea 11:1
Hosea, directed by the Holy Spirit, recorded one facet of the life of the coming Messiah. Those who studied the Scriptures as they looked forward to His arrival would be looking for some connection with Egypt. Consider how odd this detail must have seemed to the Jews at various points in their history.