I think a major part of the problem is Apple's attitude towards bug reports: they basically DO NOT WANT TO HEAR FROM YOU. Which means that rare bugs go unnoticed and get swept under the rug.
I know that it's difficult to triage and process bug reports at scale, but I guess that's where some of those hundreds of billions of dollars could be put to good use.