Thing is, Jesus and his fam had no intention of putting down roots  in Egypt.  And they left Egypt as soon as they could to go back to their homeland.   So the holy family's stay in Egypt  was only about 2 years, if that.

By the way, why did the holy fam depart  Egypt?  Bible says God told them to GO  HOME.

Every attempt to use the Bible to justify breaking the law, or to prove one's political ideas....will fail.