pow is a builtin, and like in Julia, builtins in CPython are implemented in C.
This is incorrect. Your shell prompt timing is running 1 call polluted by other hefty routines like IO and loading the session, which makes it susceptible to system variation and explains this paradoxical result:
This is the exact reason why there are dedicated timing libraries, some included in the standard library of language implementations like timeit for CPython, capable of repeating calls to account for or average out the variation.