International managers get a very limited time to work with their select squads. Friendlies are vital to developing the team for competitive fixtures.
Club level pre-season friendlies are about fitness, tactical development and trials for new players. Often large clubs include tours to USA and the Far East or Middle East for commercial marketing opportunities.
At youth level (U19s semi-pro) I lost more players to injury in pre-season than in the competitive season.