I was a "good kid" for three reasons:
1. Doing the "wrong thing" was more stressful than doing the "right thing". I like to have as much control of the outcome as possible and prefer things to be well worth the investment in time and effort.
2. I honestly saw myself as investing in my future freedom as an adult. Stay out of trouble so I can eventually have my own education, employment, money, and freedom. Then I can do whatever the hell I choose.
3. Love and respect for my parents. They were very strict. In high school, they gave us more freedom and there were a couple of times we tried to test that freedom. LOL. They made sure they reeled us in and put us in our teenager place. Other than those rare instances, I was very obedient. My parents aren't always right. But, listening to them as a child meant I can ignore much of their advice as an adult.