By declaring `cdef int`, Cython compiles it to a raw C integer type (typically 4 or 8 bytes), allowing direct manipulation as a C primitive. This bypasses Python object overhead and bytecode interpretation, enabling significant speedups in computation-heavy loops.