My guess is that it’s more social than biological. Women have a tendency to form closer, more emotionally available, and more plentiful relationships with others – I believe partially due to hormones/brain development and partially due to culture. They’ve done studies that show that having strong social relationships is important to lower stress and loneliness, which can lead to a longer life. I’m not sure if that’s all of it but it definitely couldn’t hurt to work on those things :)