Total internal reflection.
In other words. the light traveling through them stays inside of them instead of exiting through the sides of the cable.