To continue as a company they have to invest just like any other company. As Apple is so big, of course the investments they make are big. But not necessarily bigger than what any other company invests in percent of revenue or profit.
This announcement makes it sound like it's something amazingly special they do. But in fact, any company throughout history has invested a certain percentage of their revenue, just like Apple is now doing.