In general, battery is source of electricity and not the heat
source.
However, for common use of battery, battery can be a heat source
though it is not intended to be. It is because the flow of
electrical current through resistance would give out heat. If your
battery heat up without cause then it is suspected for the
short-circuit. Over charging or oversupply of electricity would
also cause the battery heat up.