Can someone explain to me why exactly Starfield claims that Earth lost all its atmosphere, because it lost its magnet field ?

It doesnt actually serve any actual story purpose and its also incorrect.

Earth has in its past survived millions of years without a magnet field. It wouldnt instantly lose its atmosphere if it lost its magnet field now, either. That would be a very slow process.

Obvious science errors in science fiction material is really annoying.