Because it makes the function non thread safe.