The NBA had some rules back in the day to penalize teams for excessive fouling. One was, when in the penalty, the shooter got 3 chances to make 2 on a shooting foul. 2nd foul in the last 2 minutes of a game (maybe 1/2) resulted of putting a team in the penalty. That rule may still be on the books but don't watch enough NBA games to know for sure. They stopped the 3 to make 2 to speed up the game.