I was a toddler, around two years old, when my Daddy flicked something to the ground and said, “Don’t touch that”, as he walked forward along the back garden path. with me trailing behind. I always adored him.
I had no concept of obedience or disobedience, only infant curiosity when I immediately tried to pick “that” up with my little finger and thumb. It felt sharp.
It was cigarette ash. I didn’t cry, not because I didn’t want to be found out, but because as a child I always internalized things. I didn’t really communicate much with others until I was eighteen.
That little event left me with a lifelong understanding that what adults take as disobediaence in a very young child may not be disobedience to the child, but exploration.
You learn what is acceptable or unacceptable through consequences.
We do have an innate moral conscience, but it is gradually formed though our expriences as children, of what those around us, and responsible for us, give us as boundaries and teach by example or reverse-example.
That’s my very subjective answer. The Catechism of the Catholic Church, and psychologists will supply what is lacking i my response