That's pretty much the definition of "rational" as it is applied in Economics. See http://en.wikipedia.org/wiki/Rational_choice_theory
> They found that both real lower-class participants and those temporarily induced to rank themselves as lower class felt that a greater share of a person’s salary should be used to support charity.
They could on some level see themselves as beneficiaries of charity, and be more charity-minded themselves to avoid cognitive dissonance.
If you derive utility from giving money to charity (e.g., you enjoy warm fuzzy feelings) then it is completely rational to do so. Charitable giving is a consumption good just like video games, playing soccer or shopping for clothes.
"Hey, it looked like it'd work on the chart!"
Ok, now, I submit for you consideration the possibility that you just picked a number quite inconsistent with your own behavior, that is, the other efficiencies which you accept as a matter of course. As an example, the efficiency of internal combustion engines.
What grounds do you have for thinking that charity (and presumably altruism in general) is irrational? Are you assuming that only self-interested actions can be rational?