iPhones have better CPU/GPUs though.
Having a better screen and camera, like GP points out? Yeah, that's something actually important to customers.
So they don’t pick apple because it has a better CPU or GPU. They pick it because it gives them a superior experience and does what they want.
And I don't mean this as to diminish iphones usage experience or capabilities. It is the same for people buying one of those über expensive Samsung folding phones, cars, clothing or the latest Thermomix.