Marginal versus average cost. Extremely low marginal cost (cost of the next unit to produce) but extraordinarily high average cost (includes capex). You typically make decisions for profit maximization on marginal cost.
You can safely ignore capex once the plant is built, though. Because nobody is going to give you the money back. And so, after the plant is built, the only relevant optimization parameter left is marginal cost.