Fact 1: the type of material through which sound passes changes the speed at which sound travels. 
Fact 2: Sounds are made by vibrating objects.
The type of material through which a vibration passes changes the speed at which it travels.