Having your Android equipment switch from your mobile data, your homes WiFi can be very convenient.
But, as convenient as connecting to a nearby WiFi may be, it can also be dangerous.
Tap on WiFi> WiFi Preferences, and toggle off the Connect to open web connection option.