I would say it's unhealthy to think of it as only luck.
It's luck that you like something that is sought after in the job market. But actually spending years learning about it, and sometimes learning things you may not like so much because they are needed for the job, takes effort.