The Gym Group announced on Wednesday that in the first six months of this year it swung back to a profit for the first time since 2019.