so back to the question, there are a lot of reasons why our atomosphere does not dissapear.
First is our gravity... It requires a velocity of 11.2 km/s to escape our gravitational field, which means that it would require each particle to have very high temperature (high energy) to get out.
Second is our magnetosphere. The magnetic field created by the rotating iron core deflects charged particles from the sun (the same reason we get auras), meaning that out atmosphere doesn't get as much energy as it could= less energy= less temeperature= harder to escape.
Third is the quantity. There is about 10^21 Kg of atmosphere! (really rough estimate) Even if we were losing 2 tons of atmosphere a day, it would still take more than 14 trillion years to lose it all.
Fourth is: yes, volcanic activity. As we are losing gas into outer space, we are gaining it back from inside the earth, creating an equalibrium.
I may be missing some reasons, but the main point is, i don't think we have to worry about losing our atmosphere. A bigger focus should be cleaning it up a bit.