Thanks, and yup, hence the need for water.
The ancient Egyptians didn’t use hydraulics to lift stones. Had they built something of that kind, it would have to be waterproof, integrated into the structure, be made of metal, and still be inside the pyramids.
And, it would be so slow that they’d still be working on them. :^)
The biggest problems to overcome when talking about ancient hydraulics revolve around maintaining pressure. You need tight, precise seals that hold under pressure and some way of routing the water that doesn’t succumb to pressure by expanding, leaking, fracturing, or otherwise bursting. At a minimum they would need metal tubing built to specific diameters and tolerances, seals that allow metal tubes to slide into one another without leaking, and waterproof hoses that don’t leak or burst (I suppose you could use metal tubes instead of hoses but you’d need all manner of seals between tube sections; it would be a nightmare). So we’re talking about the need for precise lathes for the metal tubing and the right materials for the seals, pistons, and hoses. I just don’t see the Egyptians or any ancient peoples having that technology.
Primitive, but I suppose it's possible. Easier than building a dirt ramp and dragging the blocks up to needed level? I dunno.