Reasons for the flow of current inside the battery