Let's be frank, a lot of the times, the idea of "protected classes" arises from the problems incurred by NOT protecting them. If something will cause problems in society, I think governments will tend to consider that thing with a great deal of care and caution. That said, your point is still well taken. We can see the problems that, for instance, having slavery caused in terms of bloodshed. It's more difficult to see the problems caused by, taking the original example, not making wedding cakes for the LGBTQ community?
So those laws are, at times, UNQUESTIONABLY ethical. I think it would be difficult to argue against the ethical foundation of the idea that in some cases, (again, slavery, Jim Crow, etc), protected class status is pretty good policy. (Certainly preferable to slavery, Jim Crow, etc.) The questions arise more when the stakes don't seem quite as high to the average person. (Taking from AlexB138's comment, the example of wedding cakes for instance.)
Maybe "protected class" is simply an idea that developed via "scope creep" over time? It starts out with everyone, quite rightly, saying "we're going to enshrine the rights of enslaved people into the Constitution so they can never again be assailed or threatened." But it develops over time into, "Well, you did it for blacks or women or whatever. So why not for nazis and pedophiles?" What you need to realize though, is that the average person, myself included, is going to think that is an extremely silly argument. Blacks and women, are not the same as nazis and pedophiles. Even if it's simply for the sake of making your argument, people will have a hard time with that equivalence being drawn.
But I prefer to think of it as who is a protected class reflects who has the political power to make protected classes.
It's a model that generalizes well, even back to when Jim Crow laws decided who was protected. And I expect it will continue to reflect the changing conditions of future society.
Pedophilia is a special case versus other sexualities because pedophilic sex acts are criminal acts. Sure you can argue that all laws ultimately reflect common societal values which do change, but the justification for criminalizing pedophilia has some awfully deep roots -- namely in the idea that minors are incapable of certain types of consent, rendering pedophilia a form of assault.
I don't see why protected classes aren't an impartial standard? Admittedly, the inclusion of a particular class into the set of protected classes is perhaps a bit arbitrary, but it has the advantage of being simple while also addressing the common and egregious cases of injustice fairly well.
I fail to see the connection to Rawls, aside from an interest in "impartiality".
You're begging the question there. Unless there's an impartial standard for what constitutes a protected class, they're no more impartial than saying that people called Dave are allowed to break the law.
Protected classes tend to be things about themselves that people either can't change (race, nationality, gender, age, sexual orientation, family status, disability) or that it would be unconstitutional to force them to change (religion) and that people have been discriminated against on the basis of in the past.
Would James Damore be spared if he claimed not that he thinks that women are whatever, but that he believes so?!
You could make an argument that in the US people of different religions get along better than they used to and as a result religion no longer requires the Constitutional protections it currently enjoys. I would respond that as a society we probably have bigger fish to fry.
Sure, we can force people to at least act like they believe in a god (or not). But is it tyrannical to do so? Plausibly, yes.
Physical fitness, good hygiene, and dressing well can take most people within a standard deviation of being considered attractive. And in any case "beauty" is far more subjective than race or national origin.
Height is a trickier one but outside of discrimination against people with dwarfism (disability) I'm not sure there's been a pervasive, ongoing, systemic discrimination against tall people or short people. Correct me if I'm wrong about that. I've read occasional research studies about tall people getting more leadership jobs, but I don't know how rigorous those are.
Intelligence - hiring is about capability to do the job, not "intelligence" whatever that means. Employers can use whatever means they want to judge ability with the following conditions:
"...it is unlawful to use a test or selection procedure that creates adverse impact, unless justified. Adverse impact occurs when there is a substantially different rate of selection in hiring, promotion, or other employment decisions that work to the disadvantage of members of a race, sex, or ethnic group."
If an adverse impact occurs the employer can only continue to use that selection procedure
"...if the procedure is job-related and valid for selecting better workers, and there is no equally effective procedure available that has less adverse impact."[1]
That second one is (I believe) what makes it legal to put out casting notices asking for actors of a specific sex, age range, or sometimes race. But if an employer can't show that an IQ or aptitude test is job-related, and the test is found to have a disproportionate adverse impact, it can't be used.
It’s not as though there’s a lack of data for outcomes here, and it’s weighed against slippery slope fallacies and “what if’s.”
AlexB138 was asking whether are laws are ethical, not whether the laws were legal. Describing the laws in more detail doesn't really resolve the tension.
In other words, why are some classes protected while others aren't? Is there a principle that we should be applying impartially (as in Rawlsian justice)?