Rain falling on dry ground can release an earthy smell called petrichor. One contributor is geosmin, a compound produced by certain microorganisms. Drops striking the surface can help disperse tiny particles and droplets into the air.
So the smell you associate with water has a surprisingly terrestrial ingredient. A shower gives your nose a short introduction to what has been happening underfoot.