Well, yeah, a restaurant can buy more ingredients at a time which makes it cheaper since they get a bulk discount. While you pay $3 for that sandwich, the restaurant only pays $1.50. If the DIY EpiPen costs you $30, then a factory probably churn one out for $15.