Compression gets decided in the worst order there is. The heads get milled, or the pistons get ordered, and then somebody runs a four number calculator and finds out the combo lands somewhere nobody wanted. Metal already cut does not grow back, and a piston set bought wrong is money sitting in a box.
The four number calculators are part of the problem. They hide the stack. Chamber, gasket, deck, dome, and dish all move the ratio, and the small pieces move it the most, because the clearance number is small and it sits on both sides of the math. A combo figured without the whole stack is a guess with a decimal point.
And static compression is only half the story anyway. The cam decides how much of the stroke the engine actually traps, so two engines with the same static number can want different fuel and behave like different engines.