Why does air exert pressure?

Air exerts pressure in the same way that water exerts pressure on a diver. Air has weight, and because we are at the bottom of a blanket of air that surrounds the earth, the weight of that air is pressing down on us (creating pressure). If you go under water, you'll feel the additional pressure created by the weight of the water above you.