Because the JIT itself is R code, and the mocking will be active for the JIT, potentially breaking it.