But real job skills do disappear, too. If one person has been working with machine tools 40 hours a week while the other hasn't used machine tools for six months, hiring the first is the rational thing to do.
Personally, as a software engineer, I've enjoyed my bouts of unemployment, because I've had the chance to deep dive into new things I never had the chance while working full time, and I've come out of them more employable. (Although I'm in the job hunt now while still employed, and recruiters and employers seem to be giant flakes, maybe because I'm not calling them twice a day, or maybe because they just suck.) But this isn't the norm.