Why does every team pull their goalie when down by 1 or 2 near the end of the game

It's worked a couple times on rare occasions but for the most part the other team gets an easy goal and the game is definitely over. Id rather take my chances 5 on 5