Google's primary revenue driver is search ads. I'm sure IAP fees and web advertising don't hurt either. If you don't do searches, browse the web or use apps, where does the revenue come from?
Even if Google builds something like this, gets market share and sells at a profit, it might still be a net loss for them because of all the advertising money and click tracking data they won't be getting.
Google definitely has the expertise to build this, but they also have an extremely risk-averse attitude resulting in layers upon layers of bureaucracy, and this product is literally cannibalizing their most important markets. I can't see this going over very well at all the internal reviews.
Apple was a lot leaner than Google when they build the iPhone (which was also cannibalizing one of their main products, the iPod), but they still had to make a completely independent team with no oversight except for Steve Jobs to get it right.
We also know how bad Google is at hardware. They seem to have gotten marginally better in recent years, but Pixels are still far from successful, even in countries where they are sold, which honestly isn't that many in the first place.
I'm very bearish on Google in this fight. Apple probably stands a much better chance, they've already proven they can cannibalize their own products, they need to do far less of that in the first place, as most of their revenue comes from hardware sales and subscriptions (which is perfect for something like this), they do have a lot of hardware expertise and they've already made major steps towards AR glasses, which might end up as a better form factor for such a device than a phone. Their pro-privacy attitude might be an impediment, this stuff works a lot better if you run it on a beefy GPU in the cloud instead of a tiny, battery-conserving chip in your phone, but I hope they find a good enough compromise.