Why are my emails going to all mail after I respond?

After I respond to an email it is moved from my primary inbox to all mail. How do I stop this action