Both the NHL and NBA are private organizations which can and do have different standards and rules.
If the NHL hockey player does not like the standards set by the NHL, he is free to go play for a minor league independent hockey team in some small town in North Dakota.
or the KHL, in Russia.