The amount we can (unhypocritically) criticise these people for not doing better than their times is proportional to the likelihood that they would've noticed the systematic issues in their society, of which they played a part.
Nietzsche and Gandhi… well, they definitely should've known better. Albert Einstein? He probably was exposed to feminist ideas, but I doubt he internalised them. Shakespeare? We can probably give him a pass.
And remember: achieving great, good things doesn't mean you haven't done bad things. It just outweighs them.