“Society has decided that encouraging charitable giving is a good thing, and the government has structured tax law accordingly.”
The problem is, that “society” confuses “charitable giving” with “giving it to a non-profit” organization, as perfectly demonstrated even by your comment. Because in reality all they did is…