Like cyanobacteria algae, autotrophic plants and photoautotrophic, bacteria also use light energy for reducing $CO_{2}$ to organic compounds but water is never used as a source of electrons in bacteria. Hence, oxygen is never evolved during bacterial photosynthesis.