Zinc is a medium reactive metal and is oxidized slowly by air.It is electropositive as compared to carbon which is used as positive electrode in dry cell.So, it donates electrons and a current is produced.
It is not very reactive and is consumed slowly, so it is used in dry cells.