Through training. My dog has learnt not to bite. My children were taught that biting was wrong.
My children never went to church, had very limited exposure to religion; they have excellent morals
Good. That is why God gave us his written word: to educate us on what is correct and what is not.
Is. 48:
17 This is what Jehovah says, your Repurchaser, the Holy One of Israel:
“I, Jehovah, am your God,
The One teaching you to benefit yourself,
The One guiding you in the way you should walk.
18 If only you would pay attention to my commandments!
Then your peace would become just like a river
And your righteousness like the waves of the sea.
19 Your offspring would be as many as the sand
And your descendants as its grains.
Their name would never be cut off or annihilated from before me.”
Like you are to your children, Jehovah is to the human beings. Some are rebellious like some children, that is truth.
Did you know that for the formation of the first international declaration of human rights several leaders of different religions were summoned to express their points of view?