The reason grottos worked so well as natural fridges is due to their excellent ventilation. Since they usually occurred on rockfall or on an accumulation of scree, they have a porous foundation that guarantees internal air circulation and results in a year-round stable temperature that's ideal for ageing wine. (Some grottos have a mere 1C temperature difference between summer and winter.)