Sometimes they are a matter of luck the photographer could not expect or hope for them. Sometimes they are a matter of patience waiting for an effect to be repeated that he has seen and lost or for one that he anticipates.
After all it is those who have a deep and real inner life who are best able to deal with the irritating details of outer life.