The atoms of any material are capable of absorbing specific wavelengths of light because of their electron orbital structure. This absorption can be observed if you look into the edge of a pane of glass. The light which emerges has a green colour because so much red and blue light have been absorbed by the atoms of the glass. In the same way, as light passes along an optical fibre. more and more light is absorbed by the atoms as it continues on its path