Bob,
It is a complicated process that took place over thousands of years. Here is my attempt at simplification.
Imagine a normal temperate climate soil profile, one with horizontal layers of sand, gravel, and clay as deposited by a river in a layer cake manner. Then that section was exposed...