iPhone had first mover advantage and comes from an American company.
As a result iPhones have 50% of the smartphone market in the US, and Americans have the highest disposable income per capita of any large country (>20 million people).
iPhones tend to have much smaller market shares outside of the US. In some places they're maybe around 30% but generally they're much, much lower.