Custom dictates that royal couples can only accept wedding presents from family members and close friends. Any other gifts are donated to charities or organizations in need.
In other words, those two didn't donate out of the goodness of their hearts but because they had to.