What you describe is what a friend referred to as “some things aren’t taught, they’re caught.” You just KNOW.
I think that’s true. The parents set an example and a standard in the home .. and it just naturally rubs off on the kids. A lot of times, it’s the parents taking the kids with them, such as when they do kind things for other people, so the kids can see how to treat people; older people, or sick people, or physically handicapped people, etc.
Children do learn by what they see and hear.
Example: While my mom was a democrat most of her life, she was very active in our community. She would open up our home every election as a polling place. I realized years later that her actions were probably responsible for my being so concerned about elections, and/or politics in general.