"cloud of bees or other insects," Old English swearm, from Proto-Germanic *swarmaz (cf. Old Saxon, Middle Low German swarm, Swedish svärm, Middle Dutch swerm, Old High German swarm, German Schwarm "swarm;" Old Norse svarmr "tumult"), usually derived from PIE imitative root *swer- (see susurration) on notion of humming sound. But OED suggests possible connection with base of swerve and ground sense of "agitated, confused, or deflected motion."
"to climb by clasping with the arms and legs alternately," 1540s, perhaps originally a sailors' word, of uncertain origin. Also recorded as swarve (16c.) and in Northern dialects swarble, swarmle.