File and printer sharing that's convenient at home becomes an exposure on public Wi-Fi, where strangers share the network. Turning sharing off before connecting in public keeps your device closed to nearby users.
“Home sharing settings are an open door in a coffee shop.”