Why are mountains thinly populated
Mountains are thinly populated due to the lack of accessibility and challenging terrain. This is especially true for many areas of the world such as in Saint Helena, where the population has remained small since the first Portuguese discovery of the island in 1502. Additionally, many mountain regions are more difficult to cultivate due to the terrain, meaning that they cannot easily be used for agricultural or habitat purposes.
This makes mountains less appealing to inhabit compared to areas such as plains, which are generally easier to access and have a more suitable landscape for human habitation and cultivation. Other factors may also contribute to the low population of mountain regions. For example, due to the radioactive or toxic residue of Soviet arms testing, many mountain regions may be unsuitable for living.
This coupled with the lack of suitable development and infrastructure also makes mountain regions a less appealing option for human settlement. Lastly, in many regions, such as the Northwest region occupied by Morocco, the population generally occupies the coastal areas. This could potentially explain why mountain regions are so sparsely populated, as most of the population prefers to live in locations that are more easily accessible and have fewer challenging geographical features.
Below are images relevant to your question