I'm guessing the pyramids mostly are there for teleportation [to party members] convenience and to ensure parties without the teleportation spell can complete certain puzzles.
Based on the interface that appears once you interact with one of the teleporter pyramids there might actually be more than two pyramids later on in the game.