Why is DNA a double helix?

That happens to be the shape formed when the two strands are electrostatically bonded and is due to the arrangement of atoms, the number of bond- and lone-pairs of electrons, the bond lengths and the number of covalent bonds they each have.