The company decided to launch the iPhone X on iPhone's tenth anniversary in 2017. It was the year when Apple celebrated its 10th anniversary by launching its “Xth” model. It might have been confusing to have a tenth-anniversary phone that was named the iPhone 9.
Source: scoopwhoop