Dollar stores often place staple items at the back of the store
This forces customers to encounter other, less-necessary items on their way there, leading to impulse buys. This video explains other ways that dollar stores make money while selling extremely cheap products, keeping dollar store profit margins relatively high.