I'm going to address some points from above.
Overpriced - they may be expensive, but so are many Android devices aimed at the 'Premium' sector of the market, keep an eye out for the eye watering price of the upcoming Samsung Galaxy S7 range. Also Apple products retain a higher second hand price than any other device - you only need to check out ebay for proof.
Don't be fooled into thinking that only Apple try to pull you into their ecosystem. Google and Microsoft both do the same. Google are currently driving me mad insisting I install software on my device which I know I don't need, consequence, I am locked out of my play store account.
We all pay for logo's in all walks of life. Check out your wardrobe, car, household items. This week I saw a programme where hairdryers were being sold using the Vidal Sassoon name. An American conglomerate had bought the name to add cache to their mass produced hairdryer. I would wager many people buy the hairdryer because of the name not knowing that it is produced in an industrial area of Pittsburg. But don't forget that these products don't just appear as if by magic, there is a lot of R&D that goes into designing and getting to market devices such as these. Companies do have to recover money for that R&D and associated staffing costs etc. I read somewhere that for the iPhone 7 Apple has hundreds of people working on the camera!
Security. I can tell you from real world experience, Apple devices prove the hardest to crack.
Apple's O/S is generally well regarded in terms of ease of use. As they like to tell us "it just works" and it does for the majority of the time. When something does go wrong it is big news because Apple is a big company and has a massive user base.
Apple monetize RAM in their devices making higher capacity devices that much more expensive, so do Samsung, the big difference is that Samsung manufacture the RAM used in these devices, so you could rightly ask the question "why do Samsung still charge premium prices for their devices with larger amounts of RAM" - not just Apple.
Finally on the point of a company insisting that you use approved repair centres - the car industry have been doing it for years. Yes, you can go and source third party parts and use non approved repair centres if you want BUT.
Me - I am an Android user... for now.