the spirals could just be used to displace dirt when driving the pillars into the ground same way a drill bit works pillars could be support to make sure they dont sink we do the same for sky scrapers today by drilling into the bedrock for better support to stop sinking and leaning. its far more likely imo ancient humans were smart and understood engineering and math modern people think they were dumb because we were born after great achievements but most modern humans dont understand how electricity is even made.
Google the experiment where someone pushes a bar magnet through a copper coil.
If the copper coils are attached to a lightbulb, this generates electricity. Those coils under khafre could be copper coils .
Using Boyles law, it's possible to push the magnets through these copper pipes and pull them back with equivalent force. This alternating push and pull is like a heart lung machine that is powered by water alone.