As the altitude increases, the atmosphere gets less dense, so there are few air molecules that are able to collide with the surface. There are also fewer air molecules above a surface as the height increases. This means that the weight of the air above it, which contributes to atmospheric pressure, decreases with altitude.