There is no giver of happiness or misery. You create your own happiness and you become miserable on your own.
Gym works on the muscular system but Yoga works on the 7 systems (of body). Gym is not a substitute to Yoga.