Make the regular season games in either league matter and I'll pay attention. Both leagues let more than half of the teams into the playoffs. If the NBA playoffs started today, only 3 of 8 teams in the Eastern Conference playoffs would have winning records. There is no reason to pay attention until the playoffs, which the leagues know, because playoffs and playoffs TV is where the money is.
In general I think the NHL has a far better product than the NBA anyway, especially now that HD televisions let viewers see the puck. It's got a great flow as opposed to the start-and-stop, timeout heavy play of professional basketball. But again, when the 82 game regular season is only eliminating half the teams, I simply am not inspired to watch on a nightly basis.