Why didn’t they just hitch a ride from the eagles?

Well aside from the armies seeing them coming on eagles, sauron would have seen them also. The alliance that Gandalf had with the eagles was pretty much you don’t have to fight, and no danger.