Algae comes from poor water chemistry, and there are LOTS of reasons why your chemistry may be out of wack - tap water is just one of them. Overfeeding/overstocking is probably the biggest reason though.
BTW - using treated tap water does not guarantee poor water chemistry and as such algae blooms, but it is a common contributor.