I just want to add that I don't think the refs whistle for teams, but for PLAYERS.
They're biased in favour of certain playstyles, and certain players.
On top of that, they're biased for specific GAMES.
That means:
- certain players get preferential treatment over others
- certain games need to be won/lost in order to make the league more "fun"
In short; it's all for the sake of entertainment
Not for the sake of finding the best basketball players.