If God hates sin, why would he create humans with a propensity to sin?

Genomics is physics in its essence, no philosophy involved. Just like meteorology.