That question would be best answered by Shaw himself, who is dead, of course.
I suppose he meant that virtue was an "institutional practice" governed by the regulations of marriage. If true, then that means Shaw didn't think that people were virtuous out of any personal commitment, but rather because the "rules" of marriage required them to behave virtuously.