This occurs without changing selected_object->rotation.
As shown, set the yaw angle to 90 degrees; at this point the pitch angle behaves like the speed of rotation around the y‑axis, and what you can see with the naked eye is that the larger the pitch, the faster the rotation speed.