A theory: Possibly the smell is different in the gym because some people are doing very intense exercise into the anaerobic stage. That would change what they are metabolising for energy and that might have an effect on the pH of the sweat or the specific toxins that it contains.
Sorry for all the comments, but this is really interesting.
Re: body odour versus cheddar cheese
Sorry for all the comments, but this is really interesting.