If you unplug the connector from the carrier, the LEDs stay on, getting their ground from the motor ground.
The leds share ground with the motor, but that doesn't necessarily mean that the signal inputs do also. Ideally the signals would first pass through optical isolators, but that doesn't mean they do.