Their margins are different to most others
As in "at the margin"
What else are they going to do with their money, put in a post office savings account and borrow it back? Invest in each others' shares and profit from each others' growth. If anyone can see how this works they've probably got a patent on a perpetual motion machine too.
Speculative R&D is an essential part of a portfolio investment strategy. They've got to stop it all becoming a zero sum game by finding new areas of economic activity from which they find new sources of return on capital.
It's not difficult.
Yes, no doubt they could give it all to developing countries and no doubt all of it would be usefully and efficiently deployed on schools hospitals, clean water and sewage systems (and none of it would end up Swiss bank accounts and other syphoning activties)
However in the real world, villages in Africa are getting all this stuff through earlier examples of speculative R&D, e.g., mobile phones, solar power and, earlier, bicycles