Why do the DNA has only four nitrogen bases?

With only 4 types of nitrogenous bases, the permutations and combinations are already nearly limitless.