All rubber is a mixture of solids and air.

In hard vacuum applications the air can “outgas” from the rubber O-ring causing it to shrink and increase in density. This shrinking can cause the O-ring to leak.

Hard vacuum is defined as less than one Torr (one millimeter of mercury).