My kids are still pretty young (<10) but this is something that I increasingly understand/believe the older they get. One of the most surprising things for me as a dad was seeing how different my kids are from each other, even when being raised in exactly the same environment. This has really reinforced to me the idea that people are really their own people, and there is only so much a parent can do to influence what they'll become later. (And yes, this has also given me reason to reflect on the idea that I can't hold my parents responsible for my life choices - definitely cuts both ways!)
As a parent, you can provide an example of behaviour and whilst the child is young provide restrictions and discipline as necessary, but beyond a point, your work is done and it's up to them.