Possibly because the cost for entry to macOS is higher than with iOS. Most people are able to run a Windows computer at very little cost, and will never have any interaction with a Mac. Meanwhile, iPhones and Android phones are (broadly) on a par in terms of cost.
Meanwhile, iPhones and Android phones are (broadly) on a par in terms of cost.
This is only true if talking about mid-high end phones (and probably only high-end), you can get really cheap Android phones, incredibly cheaper than Iphones.
Possibly because the cost for entry to macOS is higher than with iOS. Most people are able to run a Windows computer at very little cost, and will never have any interaction with a Mac. Meanwhile, iPhones and Android phones are (broadly) on a par in terms of cost.