Not all types of glass are suitable for all purposes
There are many different types of glass that are used in commercial and architectural applications. Some of these are traditional kinds and have been in use for centuries. Others are alternatives to traditional kinds and made from different materials that are different from traditional glass. One of the most commonly used is made from fiberglass resin.
Consumer products like alcoholic beverages are often found bottled in glass. While many medications, mayonnaise and other condiments and food products have traditionally been offered in glass bottles and jars, plastic has taken over and is becoming more widely used. Part of the reason for this is safety but may also be weight. Plastic usually weighs less than glass and this could make it cheaper to ship. While glass may have its uses in products like beer bottles and pickle jars, plastic is used for the majority of products.
One other problem in using glass for food products is breakage. Glass jars and bottles can break in transit, costing money and making a mess, particularly if the product in side is something like mayonnaise. Breakage at home can be a cause of injuries, sometimes cuts deep enough to require a trip to the ER for stitches. Plastic is less likely to break.
Alternatives to traditional glass
Glass was once widely used in architecture. Frosted glass window panels and panels for doors were commonplace. It has also been used for stained glass windows in churches and other places like restaurants. This kind of glass is heavy, expensive and in some cases, dangerous. Older glass used in some buildings for décor is often lacking in safety features, making it hazardous if something happens to make it break. Unlike modern car windshields made of safety glass that shatter into small pellet-like pieces on impact, older glass can create shards in different sizes that have sharp edges.