It's about making employees happier and keeping them. It gives the employee a good feeling that she can donate to a favorite charity and her employer will match it.
I max out my donations to a gay advocacy group, and my company doubles my money. That feels good.
I understand what you're saying and you're right. However you can't deny that having this make a media splash is bad for them