As you go deeper into the Earth's interior, the pressure and temperature both increase. This causes the atoms in the rocks to pack more tightly together, increasing the density of the rock.