She didn’t have much of a campaign. Aside from not being Trump or Biden, she had nothing going for her. She didn’t differentiate herself from Biden. She moved to the center, not to the left. Biden hid her for 4 years, and the campaign hid her after the DNC, so she had little time for people to get to know her as a person and a human being.
I don't think this has anything to do with misogyni or racism. This is why many swing voters who aren't "at least she's not Trump" didn't vote for her. She also didn't go through a primary process. She was thrust in there and they said "well good luck, don't fail us" lol, did the Dems really have this much confidence they can cruise through this election cycle? A Trump win should have been expected, idk why many didn't think so.