Charging a mobile battery requires electrical energy which is supplied by a power source and further it is stored as chemical energy.
During the discharging process, i.e., when mobile is not connected to a power source then this stored chemical energy in the battery is used to supply power to mobile.