Here "earth" stands for the people from all regions. Alternate translation: "People were coming to Egypt from all the surrounding regions" (See: [[rc://en/ta/man/jit/figs-metonymy]])
"throughout the land." It is likely that all the different trading partners and nations that were part of the Egyptian trading routes effected by the drought came to Egypt for grain.