The story
Probably from tag (“children’s chasing game in which one player (known as ‘it’) attempts to touch another, who then becomes ‘it’; (baseball) instance of touching the baserunner with the ball or the ball in a gloved hand to rule him ‘out’”) + team.
Etymology from Wiktionary, CC BY-SA 4.0.