It's just the way the EMR is generated - by oscillating charges. Frequency of oscillation would then dictate the frequency of the EMR
Edit: A more technical explanation would be something like EMR consists of oscillating electric and magnetic fields. In the Hertz experiment, the oscillating...