Why do people living in high altitude have more haemoglobin and high RBC count?

We all know that the atmospheric pressure tends to decrease as altitude increases. Hence, the people living on higher altitudes have to compensate the low oxygen availability. Thus, they have higher levels of haemoglobin (RBCs) in the blood, which helps them to take in more oxygen.