The connectivity at the traffic lights can be a small box, easily replaced, much more cheaply than e.g. traffic sensors under the road.
If the system fails for some reason, such as an internet outage, traffic lights can fall back to ordinary timing.
You’re not raising serious objections.