Why are basketball's backboard made of glass?

how come it is made of glass and each time people slam dunk, it breaks and the place have to replace it and it cost a lot of money.