Raw Sludge

Why is sludge coming up in primary settling tanks (raw sludge )?