Selecting people with low self-worth that can be easily broken. You don't want a free thinker with vocal opinions and entitlement (warranted or not) working at your McDonalds - you want a drone that is just good enough to do the job.
Hiring process often is a reflection of work culture. Shitty process will remove candidates that won't fit the culture.
I think most of the jobs that use this kind of filtering are also low wage / low prestige where churn and training represent a significant fraction of the labor cost. So they are probably simply selecting for a certain degree of precarity & economic desperation, trying to exclude people who are looking for a little extra money to meet personal goals or fill periods between better paid work.
I'm trying to phrase this neutrally but IMO this motive is just as bad.
I too miss when a job could just be agreed upon labor for income and not this attempt to shackle a worker to some quasi indentured servitude.
There's that meme of "no one wants to work anymore" and meanwhile these entry level labor jobs act like they want to test for government clearance just to flip a burger or deliver mail.
Hiring process often is a reflection of work culture. Shitty process will remove candidates that won't fit the culture.