Apple doesn't promote sales of their non-RED phones as going to charity.
Me donating to a charity through Apple Pay, isn't quite the same as Apple donating to that charity. Are you saying that every time I write a check and mail it to the charity that my bank and the post office are also donating to the charity?
The same applies to Apple allowing donations through Itunes.
The most you can say is that Apple created "storefronts" for some situations such as natural disaster relief and doled out the money collected to charities, such as the various national Red Cross charities. For the rest, Apple only changed the rule banning donation buttons in apps.
It's nice of Apple to donate $1 million to the area they live in after the forest fires. You do get that $1 million for that forest fire was less than 0.1% of the total cost of the forest fire and that's quite generous on my part because the forest fire was well over $1 Billion. That's probably more than they paid in taxes worldwide that year.
Apple gave $1 million to the SPLC, which is a leftist group that falsely accuses people of being nazis. They give to other leftist groups as well.
If Apple paid it's fair share of taxes, they'd do more for society the tiny bits you are bragging about them doing.