In Swedish we can say that it's someone's or some thing's "förtjänst" that something is a certain way.
If my sister taught me how to swim I could say:
Det är min systers förtjänst att jag kan simma.
It's my sister's "förtjänst" that I can swim.
(Not sure what word you would use in English here)