Doing that could lead to a dangerous spark near the live battery, causing it to ignite and explode, releasing hazardous chemicals. In addition, connecting to an unpainted metal surface on the disabled vehicle's frame helps prevent electrostatic discharge.