I remember reading somewhere that some bottled product replaced plastic with glass, which weighs more, which led to an increase in trucks required, which led to more of a carbon footprint, which is also bad.
I think it is easy to underestimate how optimized production and distribution are.