Let's take a non-gendered example of someone (we'll call them Kris) who loves creating art, but is also capable of being a computer programmer.
If Kris lives in a country where being an artist means being poor and mocked, Kris would be smarter to chose the path of a computer programmer.
However, if Kris lives in a place where an artist can live a good, and perhaps even a great life, and be encouraged while pursuing that path, why would they go into computer programming?
Coming back to the topic at hand, if Kris has the capability of expressing compassion and will not be punished for doing so, why wouldn't Kris do that? A more individualistic and gender-egalitarian country is less likely to punish such expressions of compassion.