Speaking as a business owner there are valid reasons for using care in hiring long time unemployed people.
People who haven’t been working for a long time get used to sleeping late and not working with others. They usually also haven’t kept up with technology or other industry changes.
I don’t care if they are delivering pizza, but someone who hasn’t done anything for a long time is suspect.
That is a bad sign to employers. It means you are desperate.