Your body odor is not directly output from your body; it is the secondary smell of microbes digesting the chemicals in your sweat. By using deodorant, you can change the environmental conditions in your sweaty areas such that the smell-inducing microbes can no longer thrive, or their metabolic pathways change so the outputs are different.