Sadly glass costs more, is more breakable and is quite heavy relative to its contents and therefore leads to higher CO2 emissions.
Glass is also theoretically close-loop recyclable but it's again cumbersome and expensive. It's usually downcycled into building materials.