Some of the projects which don't directly generate revenue are still useful - they gather data on users and/or pose as extra ad space.
Looking at the services that have been killed over the years or stagnated, they don't allow enough data collection or ad delivery to justify spending money by Google. Either because they simply weren't well geared towards it, or because they didn't get enough uptake in the market.