There are several ways to answer this question; I'll tackle two: the embryologic answer and the teleologic one.
Embryologically (ie, during development), the lungs develop as an outpouching of the...
it is important so that the oxygen can be exchange into the body waste called carbon dioxide and the body nutrients from the oxygen and be used by the different parts of the body. by: meary williams