Read this. Same principles apply to all digital cables. The digital signal is actually generated from analog electric signals. In the case of optical, it comes down to how precise the optical transceivers are.
https://positive-feedback.com/audio-discourse/why-usb-cables-can-make-a-difference/
https://positive-feedback.com/audio-discourse/why-usb-cables-can-make-a-difference/