Android (profit of $23 billion from 2010-2016) hasn’t really done that great for Google. They still have to pay Apple a reported $12 billion a year+ to be the default search engine for iOS devices.
Apple’s business model has always been to sell “computers” at high margins. They had record Mac revenues last quarter. All of their other devices are just computers with different form factors running a variant of the same OS, most with a variant of the same processor.
Office and Windows have been the main driver for MS for over 25 years.