Plastic is also easier to mold into a variety of shapes, so you get conveniently stackable containers and lids without much extra cost (the same shapes introduce stress points in the glass where fractures could occur).
Plastic can also be made flexible, i.e. as shrinkwrap (which this product would replace in some cases). You aren't going to wrap vulnerable fruit and veg (like english cucumbers) in glass wrap.
Glass can be easier to recycle, but again you're fighting volume and mass in transportation as well as waste management. It's great for things like liquids if you have businesses willing to re-use them, but they also have to expend the extra energy to properly clean and sanitize them before they can be reused.
The last time I bought a soda from a company that would take back glass bottles and reuse them, the flavor could only be described as "soap". I never again wondered why every other company sold disposable aluminum and plastic after that.