Because you can't deduce frm the fact that one path $\gamma$ is contractible to another path $\gamma^\star$ that the integral of a functions along $\gamma$ is equal to the integral of that function along $\gamma^\star$. That is true for holomorphic functions, but that's not the case here.