In the SemEval-2007 lexical substitution task participants were asked to discover possible replacements of a target word so the evaluation metrics provided are designed to give credit for each correct guess and do not take the ordering of the guesses into account.
in the ranking task a system is already given a fixed pool of substitutes and is asked to recover the order of the list.