The phrase "to tag along" means to accompany someone or something without any particular purpose, simply because it is going in the same direction. It can refer to a person who joins another person or group without being invited or having a specific role to play, or an object that is brought along with other items without being necessary for the task at hand.