Actually that is how light works
Light is 874030 times faster then sound with sound being equivalent to 767.2 mph or 1234.8 kph
Light is a electromagnetic wave meaning it can travel through space and space has absolutely nothing or almost nothing to stop that light from travelling from a star to a planet