Gross margin doesn't tell you much about their level of investment. Gross margin is only revenue minus COGS (i.e. hosting, support, potentially infra teams). To understand further investments you'd have to know R&D or at least Opex broken out for Apple Services (which AFAIK they do not share).
SaaS typically expects 80% gross margin, so Apple is not out of line here.