Why does ATP contain ribose rather than deoxyribose?
Short answer:

The pentose ring does not participate chemically in the energy transfer reactions involving hydrolysis of ATP to ADP. 

Enzymes that catalyse these reactions would tend to be specific for ATP (rather than dATP) because they bind the whole molecule and this would most likely include the 2'-OH of the ribose ring. dATP would therefore bind less well or not at all. (There may also be an advantage for evolving such specifity so that dATP could not compete for the active sites.)

The reason that evolution produced ATP as the energy transfer molecule rather than dATP is purely a matter for speculation. One might argue that it is an extra energy expense to reduce the ribose ring, although I prefer a more mundane answer. That is that if one assume RNA genomes (and enzymes) predated DNA genomes evolutionarily, then molecules involved in energy metabolism that contain ribose — not just ATP, but NAD and coenzyme A — arose at that time. When the genomes switched to DNA there was no selective advantage in changing ATP (and NAD) as well, and such an advantage would have been required as the enzyme systems that used these small molecules would by then have been already established.