They did add iWork through the iCloud.com interface over the past few years, though. It's nowhere near as robust as Google Docs, but it seems to me they're at least paying attention to it and keeping it up to date.I could absolutely see Modern Apple nuking the whole iWork thing.
You can also collaborate live in the native iOS/iPadOS/MacOS versions, which is fairly new.
I think it's seen as an amenity to the whole ecosystem -- if you buy an Apple device, you have a basic office productivity suite available right away for free. (And actually in the case of Keynote, it's better than PowerPoint).