That's because DK is considered a Mario character, as is Diddy and Dixie.
Essentially, what matters is the COMPANY's opinion on their own stuff, and in their book, Wario, DK and Yoshi are all subseries of Mario. DK and Wario are Mario characters with their own series, but they are still Mario.