Morality, in some sense, can be interpreted as a form of investment.
What one gives one's attention and energy to is bound to flourish. Thus, by directing our attention correctly, we cause the correct things to flourish.