The origin of low-frequency variability of double-gyre wind-driven flows