They aren't. They are excellently branded, however, and that lets Apple charge whatever they want for their products under the guise of glamour and exclusivity. Objectively though, different devices serve different needs for different people, so there's no one best product. For example, Apple computers are often used by creative professionals like musicians and artists because they need specific software that only runs on Mac OS. Oh, and also because of marketing; lots and lots of marketing. But go ask a gamer to get a Mac and see how well that goes.
More importantly, Apple markets its products as premium experiences, and not everyone needs premium. If I just want a phone to talk to people and browse social media, there's absolutely no point getting a top device that runs Crysis or whatever. A cheap Xiaomi phone could very well be the best product in this case.
Why you think Apple is better than any other Android Device there are lots of devices that really work faster and smoother than apple and also they have a much-advanced feature in it so how can anyone say Apple is best. but there is a separate term in which we can say Apple is best when it comes to status than Apple comes under Budget for normal peoples because Ferrari and Lv etc bigger brands are lot expansive as compared to Apple so in this term we can say apple is Great.