Essentially, meaning to have sex, the phrase "get lucky" usually refers to someone who wouldn't typically be able to perform the act of sexual intercourse with someone else.
See also get laid, get some action