The IDG normally contains a summng gear so that as the engine speed varies over a fairly broad range, the input speed to the generator (and thus the output freqency) remains pretty much constant.
The APU core on the other hand is normally connected directly to the generator, as the APU runs at pretty much a constant speed, give or take a bit, so it doesn't need the compensation for a range of input speeds.