What is a virtue?
It is a right action done for the right reason.
A right action done for the wrong reason does not build the internal quality or character of a person.
Suppose a bad tennis player hits very hard because he lost his temper, not because a hard stroke is required.
It might help him win that game, but it might not help him become a reliable player.
What am I doing rightly?