because it's not perfect and mutations like psychopathy and sociopathy are common laws & the process of raising children are memes that enhance and reinforce the genes that govern morality.  the laws (ideally) make sure that those without morality die and do not pass on their nigger genes, though this system has slowly been eroded in the west. this is pretty much the process of how species evolved to be social. law encoded into genes.
United States