In poker the part of your luck depends on lots of factors.
Maybe in one hand you are waiting for a river with 14 outs, that is, out of 46 cards you have a 30% "probability or luck" that your hand will be the winner, and at the same time you have to take into account if your hand opponent is a value hand or a bluff hand.
You could say that you "were not lucky enough" to get those outs into your hand.
And at the same time, your outs do not mean that your hand is the winner.
For example, you have an AcKc hand and your opponent has a JhJd hand. If a turn completes Jc4cAdQs, in theory your outs would only be the flush draws, but you should remove the Qc from those draws because it would give your opponent a full house even if you complete the flush.
In other words, within the mathematical probabilities of "luck" there are also the probabilities that your opponent can improve his hand even more.
Greetings