Altitude sickness isn’t caused by your actual elevation, but by the low air pressure and relatively low amount of oxygen. To combat this, the cabins are sealed and pressurized to keep passengers from dealing with the lack of air.
In the case of a pressure breach (so, a hole in the plane/etc,) there are masks that drop down to supply pressurized air for breathing.
Latest Answers