A battery or a cell is a source of electrical energy.A part of the source energy in maintaining the current may be consumed into useful work (like in rotating the blades of an electric fan). Rest of the source energy may be expended in heat to raise the temperature of gadget. Thus an electric fan becomes warm if used continuously for longer time.
Thus for a steady current I, the amount of heat H produced in time t is
H = VIt