I think that like many traits, empathy is both innate and learned.
This was a good point made up-thread by messyisthenewtidy.
My opinion is that the propensity to be empathetic is hard-wired into our brains as complex social animals. But it requires appropriate socialisation if that propensity is to be an expressed trait.
Empathy, reciprocity, altruism or other behaviours not centred on the individual may be overridden in certain situations if other more pressing needs are incompatible with those behaviours. But I don’t think the basic predisposition to behave in pro-social ways can be denied.
Some scientists believe that mirror neurons – first discovered in the brains of monkeys – play a crucial role in moral behaviour. These neurons are activated in the brain of an observing individual in response to some behaviour in an observed individual and ‘mirror’ the original pattern of neural firing in the brain of the observed individual.
It is as if there is a resonance between the brains of the two individuals, such that the observing individual gains some insight into the mindset of the observed. The phenomenon is thought to facilitate the development of empathy in humans and – to a more modest degree - some other social animals.
Of course, this innate feature of our brains is not sufficient in itself for empathy to develop. An individual must be immersed in a responsive nurturing social environment to allow the empathy seed to mature.
In short, I do feel that basic morality in the form of a consideration for the well-being of others is a very general and natural human characteristic, transcending cultural or religious background. But of course things can go wrong in particular cases. In any given individual there could be a problem with the inherent tendency to be moral - whether through a genetic aberration or a physiological problem in the person concerned. Environmental influences such as an upbringing that is/was neglectful or abusive in some way could also undermine the natural inclination to behave pro-socially.