

I’m not a geologist so I can’t give an answer I’d like, but I do enjoy reading about such things. Your question prompted me to search on my own about it. You should read about the formation of the Western Canada Sedimentary Basin and of course, the formation of the rockies and geologic timelines and forces involved. Wish I could actually provide a short and concise answer, but I just like to think about it and am by no means a scholar. Good luck!
Bonus edit: 




I lived in the middle of three stacked apartments in my early twenties, but had a stairway down to the outside which opened to my own patio. There was a groundhog we called ‘Pete’ or ‘Petey’ that lived under the patio, and it was always nice to see a bit of wildlife so close to the city. Even the landlord didn’t seem to mind his presence. On several occasions, we would find Pete sunbathing on the very top roof, above the third story, with no discernable pathway for him to have climbed up there. This went on for years and no one witnessed his ascent. Only that he would be up there and find himself back down at some point. Pete was a good neighbor, I miss him.