Don't take the quality of your tap water for granted. If you draw your water from a well, nature may not be providing you the perfect balance. If you are using tap water from your municipal department, it likely includes minerals and additives.
Algae are prolific and opportunistic organisms that take advantage of aquarium systems that are out of balance. Water quality issues create ideal conditions for algae. This article explains how proper water quality helps control algae.