A bottle of wine by mass is ballpark 50% glass and 50% wine. A one liter glass jar of olives around 300 grams of glass.
So it's not merely packaging cost but also about convenience of shipping it around.
That said we still manage to ship both of those all over the world despite the unfavorable mass and relative sensitivity of their packaging.
The jar of olives however have plastic liner in the jar lid, so you're not escaping plastics anyway. The solution as I see it is to use the right plastics in the right way and ensure proper disposal of the waste.