There are more moving parts, some of which have very critical timing and alignment. That raises the cost at a constant level of durability. However, people like inexpensive cars. The “solution” is to make less expensive parts, even if they are less durable, as few cars survive to reach 200,000km, much less 400.
This is a pretty common type of engineering tradeoff, cost vs durability.
Biggest reason , moving parts . Diesel engines are lower revs then petrol , lower revs , less wear . The difference nowadays is near 0 , since the diesel engines have been pushed towards higher power outputs , vs petrol with low rpm turbos . It however still is the case for large engines , like in trucks , boats , where diesel is still running low rpm , they can run many many hours without breaking down .
Diesel engines being built “stronger” means the parts in the engine that move around a lot, weigh more. This limits RPM which is less of an issue with diesel engines because diesel fuel generates more power per unit of fuel than gas. So diesels can rev lower and still make plenty of power. The higher reciprocating mass also generates more torque (the actual, measureable work) at lower RPM.
It’s not as easy as saying “diesel engines are more reliable than gasoline engines”.
There are plenty of ultra reliable gasoline engines that will run virtually forever with nothing more than basic maintenance. Just like there are plenty of diesel engines that are absolute garbage for reliability.
I think some of the bias in favor of diesel is that it tends to be the fuel of choice for heavy duty applications where long term reliability is more important than other applications where an engine is used. For example big trucks for transporting goods tend to accumulate a lot more miles than a personal car so the engines are designed to be more robust, which also makes them more expensive upfront. That upfront cost is worth it for the application but it’s not in a personal vehicle.
Latest Answers