A lot of Google stuff, including Android phones, and Street View and Waymo cars, engage in Passive Wardriving [0]. They build a database mapping SSID names to GPS coordinates. This is legal, even without requesting consent, because (1) it is not hacking, since they are not actually accessing your network, but merely "approaching" it (2) it is not a privacy violation, because there is no reasonable expectation of privacy for wifi SSIDs.
As a courtesy, Google does allow you to configure your network to not show up in their database, much like robots.txt does for websites. But it involves changing your SSID, which is a very annoying way of doing it, because you have to reconfigure everything on your network to point at the new SSID. It's probably just an underhanded way of making it annoying enough that nobody bothers.
The Google car that is used to take images of the StreetView also collected SSID's (and infamously got in trouble for sniffing packets too).
So GPS location + Multiple SSIDs = triangulated location for mobile devices. Google is able to use each mobile devices' location, and it's GPS co-ordinates, and the location of your neighbours SSID, all that raw data makes for a very accurate location detection even without YOU ever using Google's services.
You might have stood a chance if you lived in a Faraday cage, but the only thing that will stop this behemoth is legislation and politicians with morals.