As I suspect much technology has been long ago invented and forgotten as the collapse of civilizations before the inconceivable floods that raised sea level a hundred meters millenia ago, flying carpets, magic wands, crystal balls, and golem all bear resemblance to current technological development.
Given the advent of battlefield robots, and the incredible congruity with legends of golem with robotics, this is but fuel for my speculations.