Goodness comes from logic. If someone understands the world around them, it is logical for them to put good in rather than evil.