I've never really understood why they hadn't done it yet. The iPad has used a USB-C connections for a few iterations now, they got a lot of criticism for switching only to USB-C style connectors on their Mac line years ago, yet they've resisted bringing the iPhone into the same ecosystem. There's a lot of third party peripherals that are reliant on lightning, but that doesn't really seem like something that would hold Apple back.