The blood passing next to your alveoli has just returned to your lungs from the rest of your body, so it contains lots of carbon dioxide and very little oxygen. So oxygen diffuses out of the alveolus, where there is a high concentration of oxygen, into the blood, where there is a low concentration of oxygen. Carbon dioxide diffuses out of the blood, where there is a high concentration of carbon dioxide, into the alveolus, where there is a low concentration of carbon dioxide, to be breathed out.