First, you go to the gym to exercise. There will be a variety of equipment for you to choose from in the gym, which means you can choose the corresponding equipment to exercise any muscle you want. This is something you can't do at home. There are not so many devices for you to choose from.
Secondly, it can be guided by the fitness coaching system in the gym. Simply put, if you want to exercise thigh muscles, the coach will tell you what actions to do to effectively exercise this muscle group, and you are not easy to strain yourself.
Unlike when you exercise at home, sometimes you don't know your priorities, and you will exert yourself very hard, which will lead to a muscle strain in your leg, and then you can't exercise the next day. And when you go to the gym, you can also learn the corresponding systematic fitness knowledge, such as how to eat meat and vegetables together to get better results.
Another reason is that all of us generally have the mentality of imitating others, that is, there is no one around to give us reference, and they are basically unwilling to move, just like what we learned in the past. When you go to the gym to exercise, you will see that many people around you are trying to make themselves better, which will naturally drive you to exercise seriously.