Except the App Store was added to the iPhone before it reached its current level of ubiquity.
I believe Apple views the App Store as a feature of the iPhone that contributes to its value - the huge variety of apps available definitely contributed to the iPhone’s success; see the Windows phone for an example of a phone without a good App Store.