Archaeological discoveries

How did the building of pyramids lead to advances in science and mathematics?

While the construction of the pyramids in ancient Egypt was impressive, there is limited evidence that it directly contributed to major advancements in science and mathematics.