Please explain to me why Google would have "test code" that seeks out a WiFi SSID,Geo-tags it then captures data from it ?
It sounds like a hundred different code screwups I've seen (and caused - lol) over the past thirty plus years of development.
Nobody named "Google" wrote that code.
A person who worked for Google did. Repeat: a person. Like you. Like me.
That person probably wrote the code as part of his/her testing out ideas, and left it in, thinking it didn't matter. Their bosses, being typical managers, would have no idea the code was there. And they would trust the developer.
When an external auditor finds the code, everyone gets embarrassed and a whip lashing for being so stupid, new internal rules are made, everyone promises to be more careful, and then it eventually goes back to the way it was before.
That's how things screw up in real life.