As with any other activity/hobby/profession, I think one needs to acquire a lot experience via practicing and hard work. By being good and proficient at it. Luck has to do with uncertainty; one may be able to reduce by careful planning. If I want to shoot some landscapes or seascapes before sunrise, or during sunrise, it pays off to plan ahead, and check weather forecasts and sunrise tables, for example.
But forecasts are just that, they carry uncertainty. I may have my plan down to the last detail, and then it rains, or the light is crappy, or whatever. Tough luck. Now, if I keep trying and go back day after day to a good location (assuming I can do it), I increase my chances of having a good combination of subject and light, but this has nothing to do with "luck".
Of course, I may go out the very first morning and get all the right conditions; one might say I was "lucky". But still, I had to do my homework, and had to make the effort of being there.
Without hard work and perseverance, one may be "lucky" now and then; but if you work hard and persevere, chances will turn in your favour.