1) More than anything else - high volumes, low margins, and intense competition. People travel to Chinatown from all over NYC to buy at those prices. When they do, they're often making a long trip (in many cases, over an hour), and so they buy in much higher quantities than they would at a local grocer or supermarket. Conversely, people who just get their groceries at a local shop aren't fools, they're saving considerable time by not having to go to Chinatown.
2) Low labor costs. Most retailers are, small-scale immigrant businesses. In many cases, it would be a family operation, where children feel obligated to help their parents, or the workers are immigrants that speak little or no English (beyond that required for selling produce), are possibly undocumented, possibly are paid cash-in-hand without being taxed, and for one reason or don't have many employment opportunities outside of Chinatown. Compared with an outfit like D'Agostino, Gristedes (both of which use unionized staff), or Whole Foods, they're going to be paying a lot less for their staff in Chinatown.