The answer is; These waves can travel without a medium
This is because space is mainly vacuum (meaning it is ‘empty’ space without ,medium). Therefore the electromagnetic waves that are able to reach us from stars mean that electromagnetic waves can travel through the vacuum of space. This is unlike sound (a mechanical wave) that requires a medium for its to transmit its energy.