"luck favours the prepared mind"
Everybody and everybody's mum has a 'prepared mind'. The kind of basic level of intelligence that's required for earning a billion dollars is extremely common among the general population. Billionaires are not geniuses; they have slightly above average intelligence and/or skill.
The pool of people who have 'slightly above average intelligence and/or skill' is massive. Hundreds of millions of people. On the other hand, the pool of people who are billionaires is tiny in the thousands. It's easy to see why it's a lottery.