I'd even go as far as to say that DNA arose out of the fact that carbon based chemistry is good for life (we see N=1 case at least), and once we accept carbon based chemistry, amino-acids are the next optimal step, followed by something like the DNA to program the construction of proteins for amino acids.
Again, I'm just a layman so it'd be nice to know the views of experts in this area.