Heavy rock on the top compresses the sand and doesn't erode. The dirt underneath is worn away, and the rock is left standing