They are exposed from erosion which strips away the top regolith
Exhumation works this way
Rocks are weathered underground from water and humid acids. this is called deep weathering.
During dry periods the regolith is then removed by erosion exposing the underlying rock