Sputtering is the process by which atoms are ejected from a solid surface by the impact of energetic particles. In the case of Mars, the energetic particles were likely solar wind particles, which are constantly streaming out from the Sun.
As the solar wind particles collided with the Martian atmosphere, they knocked atoms of gas off the surface of the planet. These atoms were then carried away by the solar wind, eventually escaping into space.
Over time, this process of sputtering gradually eroded the Martian atmosphere, leading to the thin atmosphere we see today.
In addition to sputtering, other factors may have contributed to the loss of Mars' atmosphere, such as impacts from comets and asteroids, and the planet's weak magnetic field. However, sputtering is thought to have been the primary mechanism responsible for the loss of the Martian atmosphere.