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.
For every modern car I had or used in the last 20 years, the engine itself never was a problem, other than the regular maint, oil, filters, belts, plugs, cables...
Now, electronics problems, albeit relativelly rare, were far more common and fucking expensive.
And then, but this more due to the state of modern roads and streets than the car themselves, suspension issues.