Third party sellers on Amazon and other retail sites are affiliated with the wholesalers that your book is available through. Since these sellers are partnered with the wholesaler, they have access to your book, and can list it on a site for whatever cost and condition they want. Most likely they do not have any books in their possession, and often will order from their wholesaler when someone purchases from them.
Your royalties will not be negatively impacted by these retailers.