That's not what I said, I am talking specifically about an interview. A company is not allowed to ask you about your family plans, religion, sexual orientation, blah blah, and for good reason, these things are nothing to do with job performance, yet may be the basis of discrimination. It's therefore in poor taste to "force" your interviewer into knowing something they should not and would never have asked.
> A company is not allowed to ask you about your family plans, religion, sexual orientation
More accurately, a company is not generally allowed to discriminate in hiring on those basis, and thus will generally have policy in place not to ask about those things. The law doesn't actually prohibit asking, it prohibits discrimination on those bases; but asking the question is something that can be used as evidence of intent to discriminate.
Of course, someone volunteering the information is substantially different than the company asking it.
One societal and corporate response to such laws could be to encourage supportive work environments for various subgroups. In that scenario, the interviewer would pre-emptively advertise employee benefits which are relevant to all candidate subgroups, obviating the need for candidates to ask identifying questions. It's therefore in poor societal taste to "force" your candidate into asking questions which are specific to one subgroup.
Because all religious people are anti-gay? C'mon, the point of anti-discrimination laws is so you don't make snap judgments about a person based on the attributes of a group they belong to. Your comment is just as bigoted as those who say that a person's sexuality means they can't have a family.
It is not bigotry to assume that someone who self-identifies in a religious group believes the things that the community of that religion identifies as its beliefs. While it is true that not all religious people discriminate against homosexuality, most Western (and particularly Abrahamic) religions disapprove of homosexuality as part of the standard interpretation of their doctrine. Other people cannot be expected to know what exceptions you personally make to the rules of the religion you follow.