The Netherlands have/had fossil gas. But extracting it caused earthquakes: https://dutchreview.com/news/groningen-gas-tap-to-extract-ne...
So they decided to stop. But replacing the infrastructure depending on gas takes some time. For now they are dependent on imports.