If you say "Congratulations on losing" or "Congrats on not beating me" then I agree, that is poor sportsmanship.
As the winner, you should thank them for their effort, but not congratulate them. As a person further down the rankings, it is ok to congratulate them on getting second.