Taken these reactions:
\begin{align} \ce{2\overset{0}{Fe} + 3Cl2 &-> 2\overset{+3}{Fe}Cl3} \tag{1}\\ \ce{\overset{0}{Fe} + 2HCl &-> \overset{+2}{Fe}Cl2 + H2} \tag{2} \end{align}
Why does $\ce{Fe}$ have +3 charge in the first example and +2 charge in the second?