**egypt got some knowledge from different cultures,including sumeria/babylon/now iraq,but nobody knows where the knowledge of the piramids come from,but were built in mexico,central america,southamerica,egypt,even the us,some civilisation in the past have commerce on diferent parts of the world,and some researches point to atlantis. **
The Bible tells us that the Babylonians built a pyramind type stucture...God confused the language and people dispersed across the earth. Could be the dispersed people used the pyramid architecture as a base in designing their own.