It instead increases testosterone levels meaning you can train harder and for longer periods meaning you ultimately burn more fat stores and generate more lean muscle.
If you're eating in a calorie surplus but aren't generating a sufficient growth stimulus through your training plan, you'll inevitably end up gaining more body fat as opposed to leanmuscle.