Because they had to if they wanted to stick with the iPhone.
Really though, fuck Apple. This change wouldn't have happened without the EU forcing their hand.
I do find it strange though. For the first time since the 4S I am actually interested in the iPhone and going to USB-C is a big factor in that interest.