What causes the fear of glass?

Most fears come from an exaggeration of an actual danger. Glass is breakable, and when it breaks the pieces have extremely sharp edges on which people can easily cut themselves. So glass has its hazards.