An internal combustion engine may be complex, but it's not fancy. I can see and touch and understand every part of it. I can maintain and modify and repair it. This is not true for fancy electronics and certainly not locked-down proprietary firmware.
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.