I suspect it’s more due to testosterone. A castrated male can live between 5 and 15 years longer than an uncastrated one (depending in part on the age at which the testicles were removed)
(Not that toxic masculinity isn’t also a factor, but I suspect it’s not as large as you might think.)