I would say that the social benefits of leaving the house to go to a gym, even if you talk to nobody throughout the visit, outweigh trying to solve the problem in the place where you already live and work.
Some of us are time poor, or to flip it round, very busy. Our 24 hours can be hectic, filled with parenting and work. 10-20 minutes a day at home is easier to fit into a busy schedule than an hour to go to the gym.
Is an hour at the gym better? Yes, but 10-20 minutes a day consistent will outweigh sporadic visits to the gym.