This is all for safety reasons. For example, if the lithium-ion battery short circuits and catches fire in the cabin, it's easier for crew members to put it out. However, if it's in your checked luggage in the cargo, it presents a risk to the entire plane.