How did the lakes in the Scandinavian countries and Finland form?

Glaciers.