I'm sure luck definitely has something to do with where my life is right now. I prefer to consider myself blessed. Whenever I find myself getting judgy about someone in a different position than me I remember that a simple twist of fate could take away everything I have built. We are always one lucky break away from living in that third world country or a similar situation at home.
Luck and probably some effort I'd say.