This is an over simplification, because the volume is costantly changing, but:
The state of an amount of gas is determined by its pressure, volume, and temperature according to the equation:
pV=nRT
where
p is the absolute pressure [Pa],
V is the volume [m3] of the vessel containing moles of gas, here it is the volune you allow in the shell case
n is the amount of substance of gas [mol], here it is in solid form as powder
R is the gas constant [8.314 472 m3·Pa·K−1·mol−1],
T is the temperature in kelvin [K].
Think of the amount of gas n as being in solid form as powder until the "big bang".
Now do some math. Presume you are shooting your pet load
1. Increase the amount of gas n (powder that produces the gas), while R and T remain constant,then remembering that the volume V remains constant (at least initially). That means the pressure must increase to match the increase in gas.
2. Back to the pet load, Now decrease the volume V (by seating the bullet deeper) and keep the gas n the same, in order for the equation to ballance, the pressure p must go up.
Now, isn't that as simple as pi R round.