Well contamination can occur due to several factors, including surface water seeping into the well, a damaged well casing, or nearby septic system issues. Regular well inspections can help prevent contamination.