Presence of moisture in air decreases the density of air. Hence velocity of sound increases on a rainy day