The bases form different interactions because the sides of the double helix are made from these two groups which are known as the pentose sugar and the phosphate group.
The two strands of DNA, the two nucleotide chains, are held together by a type of interaction called a hydrogen bond, which occurs between the bases of each chain.