Hera cursed any land that gave refuge to Leto while she was pregnant.
Hera's relentless pursuit of vengeance, fueled by her husband Zeus's infidelities, led her to target Leto, one of Zeus's lovers. To prevent Leto from giving birth, Hera cursed all lands, forbidding them from offering sanctuary to the pregnant goddess. This forced Leto to wander for a considerable time, seeking a place to deliver her children.
Ultimately, Leto found refuge on the floating island of Delos, which was not technically considered land, thus circumventing Hera's curse. It was there that she gave birth to Apollo and Artemis. While Hera's primary target was Leto, her curse extended to any landmass willing to help her.