This is because the molecules in solids and liquids are packed much more closely together than in gases. This makes them denser and less compressible.