Stigma, or maybe heuristic. "We don't want to hire somebody nobody else would hire." It's silly, since you could just evaluate for yourself, but a lot of judgements are silly.
I don’t think this needs an explanation. Family break is a legitimate reason for career gaps, and interviewer cannot really prove what was actually going on there. People should really stop asking this stupid question. Also a person who started looking for a job two years ago and a person talking to you now may be very different people.