From Science Daily:
Warm-blooded birds need about 20 times more oxygen than cold-blooded reptiles, and have evolved a unique lung structure that allows for a high rate of gas exchange and high activity level. Their unusual thigh complex is what helps support the lung and prevent its collapse.
“This is fundamental to bird physiology,” said Devon Quick, an OSU instructor of zoology who completed this work as part of her doctoral studies. “It’s really strange that no one realized this before. The position of the thigh bone and muscles in birds is critical to their lung function, which in turn is what gives them enough lung capacity for flight.”