https://www.goingzerowaste.com/blog/which-is-better-for-the-environment-glass-or-plastic/
They do though. Manufacturing in general has a high carbon footprint, and the overwhelming majority of plastics the containers won't be recycled so the next packaged item will have the exact same carbon footprint as the first one.