You don't have to go to the gym to exercise. Plenty of bodyweight exercise (like push-ups, L-sits, planks, burpees, etc) can be done at home without any equipment.
Investing in a little bit of equipment, like barbells or maybe a pull-up bar, can let you do even more exercise at home.