Why roll and yaw became -180 when pitch is larger than 90 which is increased by AddTorque

While I am using AddTorque(0, 30, 0) to a box, I find when the pitch larger than 90, the roll and yaw will suddenly become -180. Why this happen?