Glaciers carved the landscape there, which is why it's called "Glacier National Park". Sad the glaciers are melting so quickly, but they've been melting for thousands of years.
To get an idea, have a look at https://xkcd.com/1732/ and take your time scrolling to the end.