They must have had a secret discussion. Much like Attila the Hun and the pope at the gates of Rome. In the end the Egyptians could have invaded the Spanish whilst they were up north inavding your kingdom, but they mysteriously decided not to.