Uh, no. Egypt was desert when the Pyramids were built. Egyptian civilization existed (and still does) in a narrow ribbon along the Nile; the Pyramids of Giza are only about five miles from it. They're certainly not in the middle of nowhere, that's just the camera angles working. (See https://upload.wikimedia.org/wikipedia/commons/9/94/Giza-pyr... for an alternative view.)
Pictures of the Pyramid of Djoser (https://upload.wikimedia.org/wikipedia/commons/2/2e/Saqqara_...) look like it's in the middle of nowhere, but it's four miles from the Nile, too, and only two thousand feet away from fertile farmland.
Meidum? Again, four miles from the Nile and 800 feet from farms, despite photos looking like https://upload.wikimedia.org/wikipedia/commons/8/81/02_meidu....