Related: My understanding (from the book Oxygen) is that our oxygen-rich atmosphere keeps our hydrogen (and hence, water) safe. Free hydrogen can’t make it to the upper atmosphere without getting snagged by an oxygen molecule, so we lose relatively little atmosphere, mostly helium - everything else is too heavy.