Apple skipped the iPhone 2 and produced iPhone 3G to be in line with the 3G network that was upcoming. They skipped the iPhone 9 since it was their 10th anniversary, and it made more sense to release the iPhone X then. Skipping the two numbers helped them with their marketing.