Ancient Egyptian engineers constructed buildings through techniques learned by rote and tested through trial and error. This is not to say that they weren't clever techniques, but it is why they favored certain shapes like the pyramid. Modern engineers have a much deeper understanding of the physics that govern buildings and therefore can build almost anything they can imagine. The D&D wizard, with a spellbook containing maybe a dozen magical tricks, resembles to me an ancient engineer much more than a modern one.
Maybe I'm wrong. Maybe there really are only a few dozen different things you can do with magic and the wizard is achieving true mastery of the craft. But in my eyes that's a pretty lackluster vision of magic.