Ah, i didn't realize people in the anglosphere use it as a social category now.
In German language, dog breeds are called with the same word that can also be used on humans ("Hunderasse", "Rasse"), so i always understood it as a biological/taxonomical thing.