If we draw the angle 225=180+45 on a unit circle, we see that it makes an angle of 45 with the negative x-axis.
This means that tan225, which is the slope of the line that makes an angle of 45 with the positive x-axis, equals tan45, because the line which makes an angle of 45 has the same slope,