Sit on the couch, smoke, eat chocolate. Your mileage may vary.
I did do an unholy amount of exercise from 12-20 (rowing), which may have put a few epigenetic switches in useful locations, as before that I was a spherical child, but honestly, I have no idea how I maintain cardio and strength with frankly small bursts of infrequent activity.
For a lot of people the gym is a relaxing "third place"[1] that they truly are sad to miss for a period of time.
I'm sure some percentage are augmenting, but it is surprising how common it to see people on social media declaring that people with the slightest bit of definition or muscles as steroid users.
[1] Should we call it the "second place" in the era of WFH?
Not at all in my case. In my youth gyms were places for hooligans, _heavy_ steroids abusers, low end criminals, and thus places to avoid. Then spent some years in Germany where gym contracts are famously predatory and abusive, again a place to avoid. Only around 2 years ago had found a civilized place finally. Starting to visit regularly meant to actually overcome some traumas.
But it's also genetic (I know taboo right). That some people can gain much easily and/or maintain muscle easily.
Or maybe you're doing drugs (alcohol), not sleeping right, not enough protein,etc.
Or a combination of these all.
That's like not brushing your teeth for a month, it's not the done thing. The Americans I know don't even take a month off work, lol.