It's because it's just empty spaces around. For light to be seen, it has to be reflected. There aren't enough solid obejcts to reflect the light of the sun around, therefore the rays keep travelling.
Also , there is no atmosphere in space to scatter the light.