You don't get a bonus in forests but that infantry does so it makes it a bit harder to kill.
Also if that infantry was in your enemies core provinces then he receives a 15% core bonus where he receives 15% less damage.
Finally there's an X-factor of 20% calculated an every battle. As you know the first casualty of battle is the plan. Not all battles go as expected and so it's the same in the game.
