Doctors know that heart defects present at birth (congenital) arise from errors early in the heart's development, but there's often no clear cause. Genetics and environmental factors may play a role.