Here is Reddit's take, but I wanted to know about it in tech https://www.reddit.com/r/jobs/comments/7wv4o3/why_do_hr_recruiters_care_so_much_about_gaps_in/
This is hard for them because they have no idea what they're doing. The people reviewing the resumes don't have domain expertise and are often among the least-skilled people in an org.
To make this type of activity scale, they essentially have to come up with universal filters that remove human judgment from the process. This includes removing people with gaps in their resumes.
Why doesn't this change? Because normally you have enough candidates that you can remove all the people with gaps and still have too many candidates.
When there's a labor shortage, as there is now, that doesn't apply. But a lot of recruiting operations haven't adjusted for the labor pool and are just ending up with too few candidates.
And hence, of the fact that sometimes you need to step back for a while just to maintain your bloody health and sanity.
It's also possibly just normal curiosity - most people don't have gaps in their resume.