This happens trough the process of exfoliation. And the temperature changes are called thermal stress weathering.
Hope this helps.
5.3m questions
6.9m answers