This is not strictly true. In ancient times, Plato compared the mind to a chariot pulled by two horses, representing emotion and reason. This reflected the importance of horses for transportation at the time.
In the 1600s, Descartes saw the mind as akin to a mechanical clockwork machine, reflective of the clockwork and automatons built then.
In the late 1800s, Freud described the psyche in terms of hydraulics and steam engines - cutting-edge technology.
Each era attempts to explain the complexities of the human mind through the lens of its most advanced creations. But all these analogies fall short.