The absurdity of the climate debate is that “we” talk almost constantly about two energy sources (wind and solar) that in no way have the potential to provide the stable baseload power required to electrify society. And unless nature has blessed your country with abundant geothermal or hydroelectric power, that leaves you with the following options: oil, coal, or nuclear power.
Denmark is linked to the Norwegian grid, which is essentially all hydropower [1]. It imports baseload when needed and exports cheap solar power when not.
[1] https://en.wikipedia.org/wiki/Electricity_sector_in_Norway
Wind and solar can provide enough energy. You may be referring to their well-publicized variability. Energy storage can solve that.
The addition of batteries as an intermittent power source brings us closer to 100% renewable energy and allows us to incrementally decommission dirty plants, such as coal- and oil-fired plants.
The design goal of adding a battery to grid power sources is to capture energy that would otherwise be lost when demand is lower than generation. In addition to capturing excess production of wind or solar-derived energy, one could capture unused energy from our current baseload generating plants overnight. We could also, this would also let us capture the energy that would otherwise be wasted by unnecessary nighttime lighting.