Diesel engines operate under a lot more heat, stress and pressure. The compression ratio on a diesel is FAR more than a gasoline engine. The conditions diesel engines operate under are typically far more severe.
SO, their oils are far more robust to deal with this, as well as the soot they produce.