The magic of an engine is less in how it operates, and more in how it was built. At least around the time they started showing up, manufacturing lots of precision metal parts was not trivial.
Although modern electronics take this further, with both operation and construction being utterly complex.