Or, you can try to guesstimate that by checking with previous employers. Which was the OP's point I guess, or alternatively the OP's point was "I give my employees a 40 hours/week contract, so they can't really have another job (and still perform adequately, or simply they can't depending on the law of the country)"
You don't. But you never know that for sure. The whole interview process is just gathering data to make an estimate about whether or not the person will successfully perform in the role. Them having another job would be almost the strongest indicator I could imagine that they will not be successful.
The relevance here is many managers have experience with employees who seemed fine in interviews and barely met performance bars (or just flat out didn’t) despite working just one job.
It’s well within their legal rights (and a useful heuristic!) to not hire someone because they’re not comfortable rolling the dice on a candidate being able to meet performance criteria because they’re working multiple jobs. Because working multiple jobs is a lot harder than working one job on pretty much any metric one can think of, and is not a protected class or status.
They’ll also reap any blowback or rewards from doing so, including difficulty finding candidates, or not.