Mainly because in a really perfect gas of constant composition the speed of seem is dependent only on temperature and never on strain or density, the speed of sound inside the atmosphere with altitude will take on the shape in the sophisticated temperature profile (see illustration to the correct), and https://martincujyl.blogtov.com/17867671/detailed-notes-on-air-conditioning-systems