Think of the inversion like a lid, or barrier in the atmosphere. When sound waves hit that barrier, they do not disperse and wane like usual.