It has nothing to do with legalities and everything to do with communicating the values that are part of the corporate culture. And it sends the message that if you have a problem working with/for people of a different color or sexual orientation, don't bother applying.