I think for a while it was because they had a superior user experience that would compound with the more Apple products you acquired.
That, combined with sleek marketing and a good eye for product design, and building what was the best smartphone by far (IMO) in the world at the time it was first released, snowballed into Apple becoming the behomoth it is today.