The text plays on the double meaning of the word 'failure'. It refers to a person who has not succeeded and also implies that a 'failure' would attribute someone else's success to luck rather than skill or effort. This creates a humorous effect by exploiting the different meanings of the word.
Success is just a matter of luck . Ask any failure .