The case is usually just a case, or a charging device/battery for the ear buds.
The earbuds themselves are connected to your device via bluetooth.
Depends on the ear bud brand / cost. But they either both connect to your device separately, or only one of them connects to the device, then relays the information to the other bud.