Sometimes the lungs cannot get enough oxygen into the blood. This can happen due to certain medical problems, such as lung diseases.