Hello and welcome to the forum.
I suspect it's just corroded into the drop out and mudguard stay.
Leave the nut on loose and use a lump of wood to drift it off with a hammer. A judicious spaying with WD40 or something similar will help the process. It will come off!