Why is glass used on light bulbs?

So it reflects and doesn't burn the house down!!