Atmospheric pressure decreases as altitude increases because:
At higher altitude the density of the particles are lower.
There are fewer particles so this must mean that there are fewer collisions between the particles and the surface.
As there are fewer particles, there is a lower weight of particles acting downwards. So the pressure has decreased.