Why is the atmosphere very dense near the surface of the earth?

There's 300 miles of air pushing down from above, right?