Some philanthropic donations are kinda prestige-for-cash deals. My employer, Oxford University, accepted a large chunk of change from Wafic Saïd to endow their business school. If they hadn't taken it, he'd certainly still have the money. But we wouldn't have lowered our own reputation by associating ourselves with a... not spotless businessman.
If it's done anonymously, then sure: you're quite right. But if it isn't then there is, in fact, a price. And it's not always a great deal.