answer:
So, these little critters are able to obtain energy from carbon dioxide, as well as inorganic compounds. The bacteria are able to naturally cleanse the groundwater in their environment through a process called Bioremediation. In this process, they remove excess Nitrates.
(hope this explanation helped :] )