There’s a herd mentality that often overrides practical thinking, along with the desire not to offend.
I think for RBG she had worked so hard to get there as a woman, and she probably felt like men don’t retire from the role just to please political concerns so why should she? Could she see the mess the country is in, she would have retired.