When Gmail came out it was also a gigantic money incinerator into which Google shoveled search ads revenue. It is easy to show that Google used one product line to break into another line of business. It would be harder to convince me that this harmed consumers.
Anti-monopoly law is not meant to prevent companies from investing in different product lines. Monopoly law is meant to prevent companies from using one product to force customers to buy into another product.