Birds breathe through lungs. They have a few air sacs that are connected to the lungs. Birds require a lot of oxygen to convert food into energy to fly.
When the birds fly at great heights where oxygen is less, the air sacs provide fresh air continuously to the lungs. These air sacs also help to lighten the birds.