The smell that comes from the wet earth after the rain, is due to the organic matter of geosmith. It is produced by actinobacteria and cyanobacteria living on the surface of the earth. So we can safely say that in the smell we are attracted by the secretion of bacteria.