When we recycle glass, why do we separate the glass by color?

We have separate containers for clear, brown and green glass. Does clear glass get recycled for one purpose and brown glass get used for something else?