Here's how the connection works:
* Pelote was used to describe a group of things that were close together and moving in a similar direction, much like a ball of yarn.
* Peloton evolved from this, specifically referring to a closely packed group of cyclists in a race, resembling a tight ball.
So, the word "peloton" is essentially a metaphorical extension of the image of a tightly packed ball, representing the compact formation of cyclists.