Is this confirmed or are you just saying it because it's technically possible?
Edit: Yes, this is confirmed in Apple's privacy policy for location services.
"If Location Services is on, your iPhone will periodically send the geo-tagged locations of nearby Wi-Fi hotspots and cell towers (where supported by a device) in an anonymous and encrypted form to Apple, to be used for augmenting this crowd-sourced database of Wi-Fi hotspot and cell tower locations."