Onions help slightly and in combination with everything else with do its bit.
Do some research on how onions absorb bacteria, ultimately that's what ozone machines do, they kill bacteria although on an obviously much larger scale.
It's the same reason people recommend putting a cut lemon or...