Speed of sound waves depends on the temperature, elasticity and density of the medium.
The sound waves travels slower in denser medium since it takes more energy to move the molecules but fast in elastic medium. Since cold air is denser than hot air, the speed of sound is more in hot air and hence sound travels faster in hotter gases.