Most children who are obedient are like that because they get love and encouragement for observing a good behavior. They have and internal motivation to not disappoint their elders.
On the same token kids who get criticism, tend to become mischievous so they can get attention.
We all love attension.
A wise person said something along these lines, that “Encouragement and kind words are to soul, what water is to flower.