Why are aircraft flying at high altitudes designed so that their interior is hermetically sealed from the surrounding atmosphere?

Because at high altitudes the pressure is much lower than atmospheric pressure, and in order to maintain a pressure close to normal conditions in the cockpit, they are hermetically isolated from the surrounding atmosphere.

Remember: The process of learning a person lasts a lifetime. The value of the same knowledge for different people may be different, it is determined by their individual characteristics and needs. Therefore, knowledge is always needed at any age and position.