This is how I understand it:
Most items at the $.99 store are surplus/left-overs from a year or two ago. The manufacturer sells them to the store for pennies-on-the-dollar just to recoup some of their investment. They still get to write it off on their taxes as a loss, but also get a little money, to boot.
If there is an economist out there, please clarify.