With evolution, nature enabled species to survive and thrive.
Human being have got the extraordinary gift of consciousness.
This has enabled thinking, memory and a host of other features.
As compared to the rest of the species, over the years, humans have developed codes of morality.
This has given guidelines for individual and social conduct. These guidelines, as developed over thousands of years in India, are collectively known as dharma.