What amazes me is apple is that valuable. What do they have that you can't get much better for much cheaper elsewhere?
All of these products have been very successful, I'd say even game changer. Add to that strong marketing campaign, hype and huge margins and this is what you get.
The cheaper P20 comes with Kirin 970 (10nm), you'll have to pay $1000 for the Kirin 980 (7nm), which is worse than a iPhone 7 CPU.
Computer hardware is normally a race to the bottom that only Apple has been able to get around.