This is because increasing altitude lowers the boiling point of water.
This is referred to as the temperature in which a liquid starts changing into steam or vapor.
Increasing altitude lowers the boiling point which is the main reason why the egg wasn't cooked when placed in the boiling water. The temperature at which the water boils isn't sufficient enough to cook the egg in this type of scenario.
Read more about Boiling point here https://brainly.com/question/40140