Religious education

Is compassion a learned and cultivated virtue or a genetic trait? What influence does the social order or disorder have on its expression?