It's possible that people view taxation as a solution to a coordination problem, i.e. they believe individually donating to charity will lower their personal utility while not helping others much, but if everyone does it then the trade-off will become worth it.