Light travels through vacuum as it is not a mechanical energy, as mechanical energy does not require any material medium to pass.
But Sound is a mechanical energy and therefore needs material medium to pass, so It cannot pass vacuum.
1
Sugandha Aniruddha Saha answered this
because sound needs air but light did not needs air.