I would guess the sand filtration gets rid of the "chunks" and it is chlorination that does the actual sanitation -- much like a for a pool. I don't think sand filters or chlorination can take care of nasty chemical/petroleum products in water. Most cities are careful to take water from relatively clean sources.