Why does Mars have a thin atmosphere?

Mars has a thin atmosphere because it lost its magnetosphere about 4 billion years ago. This allows the solar wind to strip air atoms away from it. See the Related Link below for more information.