>>9595666They were built by skilled workers, not slaves.
They were decades-long projects supported fully by the Pharoahs, who had personal ownership over the majority of Egypt's productive farmland (arguably the best farmland in the world at the time).
They weren't especially technically difficult, it was mainly a matter of logistics and scale along with basic geometry and astronomy.