@edward There's a whole scummy industry based around WiFi tracking:
https://skyfii.io/blog/smartphone-tracking-what-you-need-to-know
If you want to know why some shops offer free WiFi to their customers, this is the reason: it improves tracking accuracy.
Always turn off both WiFi and Bluetooth when you're out and about. Turn them on only when you're in places you trust.