You’ve probably noticed that near the end of a game, the team that’s losing (especially if they’re only losing by a few points) will start fouling the other team. They do this to try and gain back possession rather than waste precious seconds. After foul shots, the defending team is more likely to get the rebound on a miss as they have more players in the key (4 players vs 3). Even if the foul shot is made, the defending team gets to inbound from their own baseline. After all, it’s hard to score baskets if the other team has the ball!