why do sound needs a medium to travel?
Sound propagates when an objects vibrates which produces disturbance in the medium. These disturbances travel through the medium as sound waves in the form of alternating compressions and rarefactions. Therefore sound needs a medium for propagation.