Especially since the pyramids would have been built at a different time from the Israelites being enslaved. They’re from some of the oldest rulers while the whole Moses thing, best anyone can date it if it happened, happened around Rameses II or at least in that era, like a thousand years later.