Sound like bearings in hub are seized to axle, someone didnt use grease did they 😆
Used to be a lot of posts on here for RS forks doing the same, trick is to get the wheel moving across the axle as you undo the thread.
Place the threaded side/leg against something solid.
Unscrew the axle 1/2 turn.
Hit un-threaded leg with soft mallet.
Unscrew axle 1/2 turn.
repeat…
hitting the opposite leg will knock the hub across, do it slowly, small number of turns at a time, dont do it near the end of unthreading or you could damage threads but it should be unstuck enough by them to just unscrew.