The contaminated water contains bacteria which uses oxygen and lowers the optimum level of oxygen necessary for survival.
Chemical contamination of water act as nutrients for algae. This helps in the growth of algae. Once the algae dies, they serve as food for bacteria. A large quantity of oxygen gets used up in this process. Thus, this lowers the optimun level oxygen in water that is needed for survival.