Although many things in life aim to offer equal opportunity, this is seldom accomplished in practice.
Consider: a job is advertised and you apply for it.
Your CV, cover letter, presentation, appearance, interview skills and abilities
are entirely suited to the job.
Does this mean that you will get it?
There may be a preferred candidate.
Somebody interviewing you may simply not like the look of you, or you may not be
who they had in mind.
Another candidate might offer better skills than you.
Unfortunately, many things in life are down to luck. You take a risk, a chance.
There are no guarantees...