You just damaged your front or rear driveshaft and have to remove it to get home. Lock the CDL, and away you go- or you'd have to put the truck in low range which locks the CDL, remove the fuse for the CDL, switch back to high range and away you go.
Same scenario but exchange 'driveshaft' for 'axle shaft', 'drive flange', 'birfield', 'differential', etc. So many parts can be removed and still leave the vehicle driveable.
You're in snow or ice and want to see if true four wheel drive would handle any better than all wheel drive.
You need extra torque for some task, but not traction. Say, pulling a boat out of the water and up a cement ramp. You don't want to worry about binding up the drivetrain, so you leave the CDL unlocked.
You like to have control.
-Spike