If I'm not mistaken.The mud is supposed to help by releasing trace elements and minerals over time.
With a deep enough sand bed ( 6"+ ) there will be a bacteria that builds up in the more oxygen poor areas of the sand that will convert nitrates into harmless nitrogen gas that will escape into the air above the tank.