This is because when LOOKUP can’t find a match, it will match the next smallest value.
In case of duplicates, this formula will return the last match.Explanation of logic is here.
LOOKUP’s default behavior makes it useful for solving certain problems in Excel.