This is you donating to the non-profit. You get the tax break, the company does not. I'm so sick of this misinformation because nobody actually donates on their own, which is why non-profits partner with companies for fundraising.
It's on your receipt, you get the tax break. As simple as that.
Similar to Music theory. It's not absolutely necessary to write good music, but understanding it allows you to be more purposeful in your writing and know why certain things work and when to break the "rules" for an effect.