That earthy scent after rain comes from plant oils, soil compounds, and bacteria released when the first drops hit dry ground.