They are rocks formed by different layers and all of which are different such as slate and are all attacked together to form a quite huge one.
This can happen by Earth's Heat.
If require further assistance please reply back.
Hope this helps and enlightens your day.
Enjoy...