The idea is that while the instantaneous frequency varies with load, the power grid is actively regulated such that frequency is constant on average over longer periods (typically such that from midnight to midnight there are 24 * 3600 * 50 or 60 cycles).