How Do You Extinguish a Lithium Battery Fire?

Why do lithium batteries catch fire?