I am mostly sedentary, and maintain body fat below 10%. It's mainly genetics, and probably 20% diet.
A lot of guys severely underestimate their body fat %. Sub 10% generally isn't possible without heavy dieting unless you're still going through puberty; genetics has nothing to do with it.
I'm not bragging, there are serious downsides, but it's absolutely possible to sit at 10% year-round, just not while maintaining any serious level of elevated muscle mass.