Or they carved the pyramids from the top down after overbuilding a sacrificial structure, That makes it much easier to maintain those sharp lines and accurate angles.
https://www.openculture.com/2026/02/were-the-egyptian-pyramids-not-built-up-but-carved-down.html
Which is a technique even wilier than previously mentioned.