I completely agree. Back in the early 2000s, I was graduating out of college and desperately wanted a job to pay off some financial obligations. I wasn't the top scorer in class and didn't even make the cut off for the good jobs. However, I was pretty confident in my skills almost to the point of arrogance and showed that unapologetically to the lady from HR in charge of hiring. She gave me a chance and I got the job (which I later found really boring but that's a different story).
It was a mix of opportunity, the willingness to seize it, how well you talked and finally, in a large amount, luck.