This question first came to my mind when I learned about the giant size of the Giza pyramids and later when it turned out that the builders were not slaves, that (according to the recently discovered writings) there were teams who raced between the title of the fastest in bringing the next block up. The motivation cannot be explained by the ambitions of the pharaohs only, I think.