An Optical Fiber is not just a hollow tube. It is made from solid glass, surrounded by a protective layer of plastic. The light whizzes through the glass, bouncing off the edges when hits them.
Fibre-optic cable is able to carry many more signals than ordinary cable. Most importantly, the signals don’t weaken as they go along the cable.