Answer
Due to angular momentum
Work Step by Step
When a bullet comes out of the rifle spinning on an axis, it has some angular momentum in the direction it is spinning. This means that the angular momentum resists the change in direction of the spin of the bullet from its original direction and thus keeps it spinning in the same direction making its motion stable and steady.