Lightning had small pins inside the port that could be caught by debris and pulled out of alignment (or in worst cases, broken off altogether). USB-C has no moving parts on the device side. Apple was reportedly behind that design since Lightning was nearing release when design for USB-C started (and Apple is/was a member of USBIF)

> Lightning had small pins inside the port that could be caught by debris and pulled out of alignment (or in worst cases, broken off altogether).

Lightning has 1.5mm of height in the slot, debris has to be pretty large to get stuck and usually it's enough to just blow some compressed air into the slot to get dirt to release.

In contrast, USB-C has only 0.7mm between the tab and the respective "other" side, so debris can get trapped much much more easily, and the tab is often very flimsy, in addition to virtually everyone sans Apple not supporting the connector housing properly with the main device housing.