Fat loss comes from the deficit. Muscle retention comes from everything else you do around it. Lift hard, eat enough protein, ...
Can you lose body fat while building muscle at the same time? Yes, it is possible but it requires the right balance of strength training, nutrition, recovery a ...