Most companies try to show they are ethical by donating or being a corporate sponsor for a charity or event. I like Google's concept of just giving things out for free since I am a great benefactor of that.
Google can make some of the money back through increased ads, but its not always clear how they do it for some products where there isn't any visible ads at all.