Pit latrines can cause human health problems and have ecological impacts, if they contaminate groundwater. Bacteria, nitrates, ammonia, etc. leach into the surrounding soil and eventually the groundwater. There's a detailed description here:
http://ehp.niehs.nih.gov/1206028/