Each kWh produced by a gas turbine has a marginal cost of fuel. By charging when there is excess power available, it’s energy that would otherwise go wasted (if the generator was asked to curtail instead) or the generator would’ve had to pay someone to take the power of their hands.