"Cheap" (or "costs") can get complicated to calculate as there's more that Europe factors in than simply the costs of running the plants. Europe doesn't have fantastic energy reserves, so that energy has to come from somewhere. Historically, a large percentage has been oil via the Middle East. That has political and military costs such as how they work with the Arab states, support for the U.S. which maintains security of the Persian Gulf, etc.
France's choice of nuclear is influenced in part because of security decisions they made in the 50s and their (until recently) ability to source cheap uranium from Mali.
Germany phased out their plants in order to stave off a last minute electoral disaster, which worked. But I'd argue that it was before they were ready. Renewables have promise, but have not reached the point where they are cheap and plentiful enough to power the energy-intensive Germany economy. I'm sure they'll get there eventually, but they're going through a painful phase to bridge that gap thanks to Merkel's decision.
Good read: https://www.cleanenergywire.org/factsheets/history-behind-ge...