Transport cost is one factor, but even in countries where glass bottles are sold alongside plastic ones they are unpopular to the end user themselves because of their inconvenience.
The common 2kg×6 PET bottles format is too heavy for glass bottles, so you end up paying more for heavier 1.5kgx6 bottles that are going to last you less.
Ketchup should be in a jar rather than bottle really. You can't get the ketchup out of glass bottles. Or atleast 5yo me couldn't. And that was about the last time I had those.
Boxed wine comes in a plastic container. Beer goes off rather quickly without excellent storage, which is why cheap beer has settled on aluminum cans which preserve well while being cheaper and lighter than glass.
> which is why cheap beer has settled on aluminum cans
Where I come from beers come almost exclusively in glass bottles for the large ones (66cl), aluminum cans are only used for the small ones (33cl) but you can buy them in glass as well.
Many of the cheapest beers are imports, for example Bavaria, that you usually find in aluminum cans in Holland but in glass bottles in Italy.
I can't explain why, but for us some things must be bottled in glass or they aren't "good".
Tomatoes is another example: you can find cans of tomato pulp or peeled tomatoes, but not the sauce, it always comes in glass bottles (it exists of course, but it's a very weird choice to us).
The common 2kg×6 PET bottles format is too heavy for glass bottles, so you end up paying more for heavier 1.5kgx6 bottles that are going to last you less.