Transverse waves require a medium with shear strength to propagate, which is a characteristic of solids like metals. In gases and liquids, the lack of rigid molecular bonds prevents the transmission of transverse motion, allowing only longitudinal waves. Therefore, transverse waves can travel through metals but not through gases.