The reason why chemical batteries produce current