Right angles and everything in between
Rotating by 90°, 180°, or 270° is the common case: a phone photo saved sideways, a scanned document fed in the wrong way round, or a landscape shot that should be portrait. These quarter turns rearrange pixels without resampling them, so the result is exactly as sharp as the original.
Custom angles are for straightening rather than reorienting. A horizon that sits two degrees off level, or a document scanned slightly askew, needs a small correction. Any angle that is not a multiple of 90° requires the pixels to be recalculated and the canvas to grow to fit the tilted image, which is why the output is slightly larger.