Genes (affecting gender, skin color, attractiveness & more). Birthplace (affecting citizenship, or 1st-learned language). Wealth of parents and/or that country. Upbringing (including religion). Sisters/brothers or single child. Parents who stayed together or single parent. Etc etc.
For your family: great they worked to get you where you are. And yes that was work not a lottery. No need to minimize their effort.
But for you as recipient of that, it was a lottery ticket. You did not work, or decide what your family did for you. You did not decide what genes you wanted to inherit from them. You did not pick your birthplace.
So the "lottery" part does apply: for each recipient of a set of cards.