Spill kits are used to contain and clean up hazardous spills, such as chemicals or oil, to prevent environmental contamination and minimize the risks associated with the spill.