The eagles rescued Frodo and Sam from Mordor after Sauron and the ring were destroyed. Thus, we may infer that up until then, the eagles could not have entered Mordor, and/or they could not have carried the ring-bearer there. Precisely why does not matter. When the ring is destroyed, the world changes, and so its constraints also change.