Actually they didn't. Even before renewables, excessive energy production had to be taken care of. In Belgium, all highways got street lights to use up the excessive nuclear energy at night. In many places, electricity was promoted for heating at night.