It’s likely they know someone they’ve effectively already offered the job to, but equal opportunity laws require a job posting to be made. So while they are technically “hiring”, the job posting is fairly meaningless.
There are easier ways to address equal opportunity requirements (really just immigration stuff)
More often you just want a way for extremely strong tactical inbound candidates to find you. Even if you're not desperate to fill the role, you want strong candidates to find you, reach out, and then work with them to find a role to fit the candidate.