In many of the cases, if not all, the person had to hide his or her sexuality.
History willingly complied, for example, by representing Eleanor Roosevelt as a heterosexual married woman.
Imagine history had none of these people felt the need to hide his or her sexual partners or interests.
Once you imagine: Malcolm X and his partner David, Eleanor and her lover Lorena Hickok, etc. you see that history gets changed when people's interests and selves are not erased by bigotry.