In addition to the other comment, which I agree as I've heard the same, for the most part Spain and Portugal have been operating as if the Iberian Peninsula was an island. The Pyrenees are a big barrier, and in Franco's era the country was very isolated.
The same happens with the electricity grid, even though it is connected to France, it has very small capacity.