It has nothing to do with discrimination by companies towards groups of people.
https://en.wikipedia.org/wiki/Protected_class
https://en.wikipedia.org/wiki/Protected_class