What are the causes of poor water quality in Developing Countries?

When it comes to drinking water today, more people in developing countries depend on bottled water than on tap water, while during early 50's our parents and grandparents used to drink river, well, and rain harvest water. What do you think, what are the main causes of this shift?