DeletedUser237 My question was how do you think such a device would be attacked via any given exploit if it would not be (directly) connected to internet?
If a bored teenager half a mile from the device points a directional antenna at it, and if the vulnerability does not involve being authenticated to the same Wi-Fi network as the target, it doesn't matter whether the device is "connected to the Internet". Wi-Fi devices do process frames, e.g., beacon frames, from senders they may not be connected to.
Here is a 2021 example where connecting an iPhone to a Wi-Fi network with an SSID containing "bad" characters resulted in a DoS: Don’t Connect Your iPhone to This Wifi Network. But there is no rule that a bug like this would require connection, or that Pixel Wi-Fi firmware wouldn't be vulnerable, or that such a bug would be DoS rather than RCE.
Complicated radio firmware constitutes attack surface, which is plausibly attackable by anybody in range via a directional antenna, whether or not the device with the radio is "connected to the Internet".