Question about the negative form in french?

I know how to create the negative form in french for an example:

Je ne le fais pas: I dont do this.

But this is what i have a question about, for example:

I dont lose anything, Je ne perds pas rien, you dont say that, you say je ne perds rien.

When do you replace the pas with a word like rien?
6 answers 6