Google doesn't need to charge to make a profit. Don't forget their primary business is advertising, so by getting more people to use their services, they gain.
Also, by extending their reach to inside the schools, they effectively set up a way to "educate" kids to use their services.