Glass also presents a logistics problem: It's quite heavy/dense! You can save a lot of fuel costs with lighter packaging, and it makes handling pallets of goods much simpler. A pallet of peanut butter in glass would require a motorized hydraulic jack, whereas in plastic could probably (guessing) be moved with a normal pallet jack.