No it is because of racism, potentially... they don't like hockey because they don't like whites right ?
No, they have less exposure to ice and less access to gear due to economics. There's a practical reason why eastern and Northern Europeans embraced the sport and Africans didn't.
I'm sure racism is a minor barrier, but not the primary factor. I have a South Asian friend with kids in hockey. No reports of racism yet.