I think it's a cord for an iron. I've seen old laundry room photos with something like this - the spring would attach to the ironing board to keep the cord above the ironing board surface.
It looks in great shape! Original plug too - it's darn near impossible to find an iron or toaster cord up here where the plug is still there.