Cossy
From their parents, their relatives, their peers, possibly their teachers.
I came from a C of E family, but church attendances were strictly limited to weddings, christenings and funerals.
I didn’t marry in church and my children were not christened.
However, myself and my husband consider ourselves to have strong moral compasses, ethics and taught our children from a very young age right from wrong.
None of our five children practise any formal religion, but we consider them to be fine, upstanding, moral decent people.
Most of us grew up in a largely Christian environment though, where even if we did not go to church their presence, congregations organising aid, Sunday schools and children's activities were around. Churches organised creches, mother's groups etc. Now there are fewer church members, and less of this.
There was a post-war gratitude to helping one another and we lived in smaller communities with more non-working mothers and we all knew the "naughty" children, so they could get away with less.
School staff were also within the same culture; some schools would not employ non-church goers.
We carried that towards our own children, but busy working mums, huge increase in latchkey kids, the rise of nasty social media, and congregations at an all time low, so kindness influence diminished. The US influence of helping oneself and D%$^ the rest is prevalent.
Isolation during COVID has reduced awareness of those around us. Even to the simple act of turning around in the street without checking who is around us.