Google provides many services - Google Adwords, Google Adsense, Google Search APIs which are directly or indirectly generating lot of revenue for Google.
But what does Google gain by providing free email service with 10's of Gigabytes of space at free of cost? And I bet the number of registered users are in millions...and obviously there are several data centers established across the world to support the same!
I don't get the magic!