Ok, but droids have those manipulator arms that go out that let them hack other systems. So, it doesn’t help much if your air-gapped system interacts with other networks.
But yeah, nothing really holds up to scrutiny if you dig too deep. Having said that, I think Star Trek (at least the modern version) does a bit better at it than Star Wars. Star Wars suffers from it being a 1977 movie where George Lucas just went with the “rule of cool” instead of worldbuilding. Star Trek (at least the modern version) seemed to think at least a bit beyond what they showed on screen.