Google wasn't exactly losing money with search results before.
If anything they're losing far more money with AI.