Unless you are a competitive athlete training for some major endurance event or part of some elite military division, there is no reason to wear a gas mask in the gym other than wanting to look like an idiot.
Is this a real thing? I have never seen or heard of it.
It's like training at altitude. I had never heard of them either until I saw them in ****'s.