Of course hitler didn't like the cultural elements of the races he deemed inferior, ethnicity by definition is about culture. Race and ethnicity are often related and they both played a part in who hitler targeted.
From Wikipedia: An ethnic group or ethnicity is a category of people who identify with each other based on similarities such as common ancestral, language, social, CULTURAL or national experiences.