It's about attitude. The attitudes of and perceptions of adults. It all starts with people asking is he or she a good baby? A baby can be neither good nor bad, it's a baby and does what babies do because it needs to, not because it is good or bad. From there on it is down to us as adults to teach our dcs what is good, bad, right, wrong. The best way to teach good behaviour is to demonstrate it, ie behave well ourselves. If you make sure that your home is a place where people behave with respect towards each other at all times, starting obviously with the way the adults behave towards each other and towards the children, then you can't really go wrong. I have two dcs who are now in their twenties, both respectful, decent delightful people who treat others with compassion, good manners and respect. I can honestly say I never ever punished them for anything. There was never any need.
I'm not sure why you posted about this, but it's a topic very close to my heart. I thank goodness I trained and practised as a Montessori teacher many years before I had my dcs. I learned about treating dcs with respect then. I wouldn't have known otherwise, and may have followed family patterns like many people do without even realising it.
There was an example from Montessori which has always stayed with me. If a guest in your home spills a drink or breaks a glass, you rush to assure them that it's fine, it doesn't matter, can be easily cleared up etc but if a child does something similar, then maybe our reactions are less kind/polite/respectful. I could go on and on about this subject, but am on phone so I won't as not easy typing all these words with one finger!