This is a genuine question - Google pays for android updates to be free because the android business model is spyware to support Google’s ad business. Apples business model is the same as Xbox, PlayStation, etc where the developers for those platforms are paying MS, Sony, Nintendo, etc
Apple isn’t even charging high rates: their commissions match or are lower than other stores, when those other stores are literally only providing payment services.
This would be closer to reality if Apple didn't drive hardware margins that are quite literally orders-of-magnitude larger than any comparable games console. When the Nintendo Switch launched it was shipping below-cost after accounting for shipping, whereas there has never been a modern Apple product that didn't ship with profitable hardware.
So when you scrutinize the two no, they really aren't similar. Apple cannot use the same excuse that Microsoft, Sony and Nintendo use.
If Apple is banned from collecting revenues from the software side, then I guess they'd be stuck with either accepting the new substantially lower margin structure. Or raising the price of the phones to compensate for the missing software margin.
There was a time when major OS updates was something you got charged for.
The reason Apple develops free OS updates for fairly old devices now is that they still get App Store revenues from the users of those old devices.
It didn’t last long; I guess some combination of lawyers, accountants, and regulators clarified the matter.
That didn’t end until Apple had the commission revenue.
Commission revenue doesn't explain Apple's free updates nor is a requirement for them. Software updates were free for many Windows Mobile handsets despite there being no central MS owned and tithed Windows Mobile software store.
EDIT: And early Mac OS releases prior to System 7 were free too!