The chain
Higher than expected inflation can raise expectations of higher rates. Higher rates tend to lift the dollar and Treasury yields, which tends to weigh on gold because gold pays no interest. Lower than expected inflation tends to work the other way.
These are tendencies, not rules. Other news, positioning and risk sentiment can override them on any given day.
Trading around the release
Spreads widen and slippage increases around the release. Many traders stay flat for the minutes around it, or reduce size, then trade the structure that forms afterwards.