It is the acidity of the lemon that reacts with the electrodes Copper and Zinc, produces both the oxidization and the reduction resulting into electrical current. Any fruit or vegetable with suitable juice can work this way.