Google has a great number of money-losing products and services. Google Maps is one of them (especially without these ads.) Compared with how much it costs to collect and maintain the mapping data (not to mention the development and infrastructure cost for the application), they most certainly lose money on it. (Google tracks and uses your location to serve you search ads with or without the use of Google Maps if you have an Android phone or use any Google product or browse to any site serving Google ads on your computer.)
Google is making precisely bupkis on self-driving cars, Google Voice, Google Docs (at least the non-commercial version), etc.