While it doesn’t happen often, lithium ion batteries catch fire. The fire can usually be contained in the passenger cabin. It’s harder to deal with as cargo, which is why airlines don’t allow these sorts of batteries to travel in checked luggage.
As a result of this risk American Airlines now boards fire containment bags and heat resistant gloves on all of their aircraft.