By removing the axle you have the ability to disassemble the hub and bearing assembly, the axle nut holds all that together. You can leave that along though, you can replace just the axle without messing with the bearings.
However if replacing rotors you will be exposing the bearings